mirror of
https://github.com/linuxserver/docker-snapdrop.git
synced 2026-01-20 20:21:39 +08:00
Update X-Forwarded-For header instead of overriding it
When this container is behind a reverse proxy itself it overrides the incoming `X-Forwarded-For` header from the downstream reverse proxy. This is problematic because Snadrop heavily relies on this information to create rooms.
This commit is contained in:
parent
2e218c0485
commit
d07b0fcb01
@ -23,6 +23,6 @@ server {
|
||||
proxy_pass http://localhost:3000;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header X-Forwarded-for $remote_addr;
|
||||
proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user