Skip to content

Commit

Permalink
Alter proxy headers for proxying from nginx to tusd server
Browse files Browse the repository at this point in the history
currently, uploads to tusd fails because tusd is HTTP GETting chunk
using non https url. We need to get it to use https url.

the new settings is the recommended ones from tusd:
tus/tusd#86
  • Loading branch information
rija committed Aug 22, 2020
1 parent edfc989 commit f1a15bd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ server {
client_max_body_size 0;

# proxy_set_header Host $host:$server_port;
proxy_set_header Host $http_host;
# proxy_set_header Host $http_host;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}

location ~ /\.ht {
Expand Down

0 comments on commit f1a15bd

Please sign in to comment.