Update nginx
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Simon 2021-10-03 03:52:45 +01:00
parent 55486aaedd
commit 6c8fdf875f
1 changed files with 7 additions and 3 deletions

View File

@ -27,7 +27,7 @@ http {
#gzip on; #gzip on;
# include /etc/nginx/conf.d/*.conf; # include /etc/nginx/conf.d/*.conf;
server { server {
listen 9000; listen 9000;
@ -58,10 +58,14 @@ http {
} }
location / { location / {
# Do preserve this
proxy_set_header Host $http_host; 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 <host>, <proxy>
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 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; proxy_connect_timeout 300;
# Default is HTTP/1, keepalive is only enabled in HTTP/1.1 # Default is HTTP/1, keepalive is only enabled in HTTP/1.1