Skip to content

Commit ab9b567

Browse files
committed
Add X-Forwarded-Host header
1 parent 4fd031e commit ab9b567

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

files/nginx.conf.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ http {
2020
auth_basic "Restricted";
2121
auth_basic_user_file /etc/nginx/.htpasswd;
2222

23+
proxy_set_header X-Forwarded-Host $host;
2324
# Do not pass Authorization header to destination
2425
proxy_set_header Authorization "";
2526
}

0 commit comments

Comments
 (0)