Updated X-Forwarded-For

This commit is contained in:
Mehdi Osman 2022-02-09 21:09:28 +01:00 committed by GitHub
parent 5e48d5619e
commit af8396a746
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ data:
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Forwarded-For $real_ip;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $real_ip;
proxy_set_header X-Real-IP $real_ip;
proxy_set_header Host $host;
@ -81,7 +81,7 @@ data:
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-IP $real_ip;
proxy_pass http://utilities-openreplay.app.svc.cluster.local:9001;
}
location /assets/ {