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/; } }