Update nginx
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
55486aaedd
commit
6c8fdf875f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue