Pass host and x-forwarded-for headers when using nginx reverse proxy
This commit is contained in:
parent
db0b33437d
commit
353c88d473
|
@ -22,7 +22,9 @@ http {
|
||||||
location / {
|
location / {
|
||||||
auth_basic "Restricted";
|
auth_basic "Restricted";
|
||||||
auth_basic_user_file /srv/app/.htpasswd;
|
auth_basic_user_file /srv/app/.htpasswd;
|
||||||
proxy_pass http://127.0.0.1:4000;
|
proxy_pass http://127.0.0.1:4000/;
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
proxy_set_header Host $host;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue