Does coderd support x-forwarded-for headers?

Hey, I am just asking my self how to configued coderd to get the user IP from the x-forwarded-for header from a reverse proxy like nginx. Is this even currently possible?
4 Replies
timoooooo
timoooooo2y ago
Seems like there currently is no way. So I created a issue for it: https://github.com/coder/coder/issues/4430
GitHub
Support for x-forwared-for headers to get correct user ips · Issue ...
Current situation When coder is run behind a LB or reverse proxy for example NGINX then coder won't pickup the user ip correctly. Disired solution It should be possible to set the IP header...
Phorcys
Phorcys2y ago
I never seemed to really need this why would you need it ? I'm just wondering
timoooooo
timoooooo2y ago
For example in coder v1 this was nessary to get the correct user ip in the audit logs. And I think its generally a best practise to expose the user ip to the application in this case coder, since coder could need it for what multiple reasons.
Phorcys
Phorcys2y ago
oooh
Want results from more Discord servers?
Add your server