From a3b1d07c731bab4fd6c655f56b5eb025da7763ba Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Sun, 14 Jan 2024 17:42:58 -0500 Subject: [PATCH] update nginx example config --- example_config/nginx_example.conf | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/example_config/nginx_example.conf b/example_config/nginx_example.conf index fb77fdb..6f970ce 100644 --- a/example_config/nginx_example.conf +++ b/example_config/nginx_example.conf @@ -6,7 +6,7 @@ server { location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass_request_headers on; - proxy_pass http://localhost:8080/; + proxy_pass http://127.0.0.1:8080/; } } @@ -18,7 +18,7 @@ server { location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass_request_headers on; - proxy_pass http://localhost:8080/; + proxy_pass http://127.0.0.1:8080/; } } @@ -38,7 +38,9 @@ server { ssl_prefer_server_ciphers off; location / { - proxy_pass http://localhost:8080/; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_pass_request_headers on; + proxy_pass http://127.0.0.1:8080/; } } @@ -58,7 +60,9 @@ server { ssl_prefer_server_ciphers off; location / { - proxy_pass http://localhost:8080/; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_pass_request_headers on; + proxy_pass http://127.0.0.1:8080/; } } @@ -70,7 +74,7 @@ server { location / { return 301 https://$host$request_uri; # If you don't want https redirection, or are using something like cloudflare to manage HTTPS, comment out the line above and uncomment the line below - # proxy_pass http://localhost:8080/; + # proxy_pass http://127.0.0.1:8080/; } } @@ -96,6 +100,6 @@ server { location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass_request_headers on; - proxy_pass http://localhost:8080/; + proxy_pass http://127.0.0.1:8080/; } }