Skip to content

Commit 86895e4

Browse files
committed
Update nginx.conf
1 parent 9a48be1 commit 86895e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ server {
5050
location / {
5151
# Forward incoming requests to local tusd instance
5252
proxy_pass http://localhost:8080;
53+
proxy_set_header X-Forwarded-Host $host:$server_port;
5354

5455
# Disable request and response buffering
5556
proxy_request_buffering off;
@@ -62,6 +63,5 @@ server {
6263
proxy_set_header Upgrade $http_upgrade;
6364
proxy_set_header Connection "upgrade";
6465
client_max_body_size 0;
65-
proxy_set_header X-Forwarded-Host $host:$server_port;
6666
}
6767
}

0 commit comments

Comments
 (0)