Commit a0165140 by Clinton Blackburn

Updated IDA template with corrected X-Forwarded-* header configuration

ECOM-2835
parent edf32cc1
......@@ -49,9 +49,15 @@ server {
{{ '{%' }} endif {{ '%}' }}
location @proxy_to_app {
{{ '{%' }} if NGINX_SET_X_FORWARDED_HEADERS {{ '%}' }}
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-For $remote_addr;
{{ '{%' }} else {{ '%}' }}
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
{{ '{%' }} endif {{ '%}' }}
proxy_set_header Host $http_host;
proxy_redirect off;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment