mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #217] How can I see the real ip with reverse proxy? #112
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@sigoden commented on GitHub (Jun 1, 2023):
see readme #log-format. replace
$remote_addrwith$http_x_real_ipor$http_x_forwarded_for