Skip to content

Commit e497910

Browse files
authored
c4d reverse proxy audit logs IP address config (coder#890)
1 parent b9f1c59 commit e497910

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

setup/docker.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ Coder for Docker works with the following platforms:
3939
1. Launch Docker Desktop.
4040

4141
1. If you've previously installed Coder, run `sudo rm -rf ~/.coder` in the
42-
terminal.
42+
terminal. **Note:** This command erases your Coder database and settings, so
43+
only run this if you'd like a clean install.
4344

4445
1. In the terminal, run the following to download the resources you need,
4546
include the images, and set up your Coder deployment (if you're using the
@@ -195,6 +196,13 @@ Coder will now run in the background.
195196
For more detailed information on the Docker Compose file, please see
196197
[Docker's docs](https://docs.docker.com/compose/compose-file/compose-file-v3/).
197198

199+
## Ensure that user IPs show up in the audit logs
200+
201+
If you would like users' IP addresses to show up in the audit logs (i.e.,
202+
identify the originating client IP address, regardless of whether they're
203+
connecting through a proxy, load balancer, or other such service), use the
204+
`-e "PROXY_TRUSTED_HEADERS=X-Forwarded-For"` flag with the `docker run` command.
205+
198206
## Known issues
199207

200208
Currently, Coder for Docker does not support:

0 commit comments

Comments
 (0)