Skip to content

Commit f14d396

Browse files
committed
Pass hostname to proxied host
1 parent 7da3d86 commit f14d396

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

context/proxy/etc/nginx/templates/default.conf.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ server {
55
root ${NGINX_DOCUMENT_ROOT};
66

77
location / {
8+
proxy_set_header Host $host;
9+
proxy_set_header X-Real-IP $remote_addr;
810
proxy_pass ${NGINX_PROXY_PASS};
911
}
1012
}

0 commit comments

Comments
 (0)