[GH-ISSUE #217] How can I see the real ip with reverse proxy? #112

Closed
opened 2026-04-08 16:50:25 +03:00 by zhus · 1 comment
Owner

Originally created by @xrfmkrh on GitHub (May 31, 2023).
Original GitHub issue: https://github.com/sigoden/dufs/issues/217

Specific Demand

I set this with Traefik(docker). but in my logs, I can't see real ip. I only can see Traefik's ip.
ex)INFO - 172.16.0.2 "GET /complete/" 200
Not happen to my other container(Authelia, Filebrowser, and so on) with Traefik. Those show real ip at logs.

Implement Suggestion

change logs to show real ip in reverse proxy

Originally created by @xrfmkrh on GitHub (May 31, 2023). Original GitHub issue: https://github.com/sigoden/dufs/issues/217 ## Specific Demand I set this with Traefik(docker). but in my logs, I can't see real ip. I only can see Traefik's ip. ex)INFO - 172.16.0.2 "GET /complete/" 200 Not happen to my other container(Authelia, Filebrowser, and so on) with Traefik. Those show real ip at logs. <!-- What feature do you need, please describe it in detail. --> ## Implement Suggestion change logs to show real ip in reverse proxy <!-- If you have any suggestion for complete this feature, you can tell us. -->
zhus closed this issue 2026-04-08 16:50:25 +03:00
Author
Owner

@sigoden commented on GitHub (Jun 1, 2023):

see readme #log-format. replace $remote_addr with $http_x_real_ip or $http_x_forwarded_for

<!-- gh-comment-id:1571096205 --> @sigoden commented on GitHub (Jun 1, 2023): see readme #log-format. replace `$remote_addr` with `$http_x_real_ip` or `$http_x_forwarded_for`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#112