Skip to content

Commit f732bd1

Browse files
committed
update nginx config file for "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;"
1 parent 0f2c834 commit f732bd1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

config/web-server/nginx/gunicorn/sample_nginx_https.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ server {
5555
location / {
5656
autoindex off;
5757
proxy_pass http://appname:serviceport;
58+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
59+
proxy_set_header Host $host;
5860
# proxy_redirect http:// https://;
5961
}
6062

0 commit comments

Comments
 (0)