tus / tusd

Reference server implementation in Go of tus: the open protocol for resumable file uploads
https://tus.github.io/tusd
MIT License
3.03k stars 474 forks source link

nginx proxy_set_header X-Forwarded-Host #404

Closed dragoscirjan closed 4 years ago

dragoscirjan commented 4 years ago

Question

https://github.com/tus/tusd/blob/master/examples/nginx.conf#L60

        proxy_set_header X-Forwarded-Host $hostname;

I think $hostname may refer to the machine's hostname, which may not always be the same as the domain. Would $host be more appropriate?

Acconut commented 4 years ago

Yes, you are right! I just had a tusd user in the last few days where the difference between host and hostname was a problem. I will update the example. Thanks!