Skip to content

Commit

Permalink
ansible: Use Forwarded instead of X-Forwarded-For header
Browse files Browse the repository at this point in the history
  • Loading branch information
jbruechert committed Feb 26, 2024
1 parent 271b017 commit fd976f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ansible/roles/motis-proxy/files/Rocket.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: AGPL-3.0-or-later

[release]
ip_header = "X-Forwarded-For"
ip_header = "Forwarded"

[release.proxy]
# TODO: Add /address and /ppr/route once we have it set up
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/nginx/templates/transitous.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ server {
location /api/ {
proxy_pass http://localhost:8000/;

proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Forwarded $remote_addr;
}

# API Documentation
Expand Down

0 comments on commit fd976f5

Please sign in to comment.