Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

Commit

Permalink
Update X-Forwarded-For header instead of overriding it
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Erwyn authored Dec 25, 2020
1 parent 2e218c0 commit d07b0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/defaults/default
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit d07b0fc

Please sign in to comment.