From 6c8fdf875f24552b1e4d5db948a92205e60a84f1 Mon Sep 17 00:00:00 2001 From: Simon Maddocks Date: Sun, 3 Oct 2021 03:52:45 +0100 Subject: [PATCH] Update nginx --- env_page_nginx.conf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/env_page_nginx.conf b/env_page_nginx.conf index 07f34a1..25b18fb 100644 --- a/env_page_nginx.conf +++ b/env_page_nginx.conf @@ -27,7 +27,7 @@ http { #gzip on; - # include /etc/nginx/conf.d/*.conf; + # include /etc/nginx/conf.d/*.conf; server { listen 9000; @@ -58,10 +58,14 @@ http { } location / { + # Do preserve this proxy_set_header Host $http_host; - proxy_set_header X-Real-IP $remote_addr; + # again dont overwrite this + #proxy_set_header X-Real-IP $remote_addr; + # this just seems to append another ip ie , proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; + # Preserve the scheme as https if behind another proxy + #proxy_set_header X-Forwarded-Proto $scheme; proxy_connect_timeout 300; # Default is HTTP/1, keepalive is only enabled in HTTP/1.1