Fix image proxy headers

Fixes #536
This commit is contained in:
Andrew Godwin 2023-03-11 11:06:44 -07:00
parent 61830a9a9c
commit 758e6633c4
1 changed files with 6 additions and 0 deletions

View File

@ -79,6 +79,12 @@ server {
# Unset Authorization and Cookie for security reasons. # Unset Authorization and Cookie for security reasons.
proxy_set_header Authorization ''; proxy_set_header Authorization '';
proxy_set_header Cookie ''; proxy_set_header Cookie '';
proxy_set_header User-Agent 'takahe/nginx';
proxy_set_header Host $proxy_host;
proxy_set_header X-Forwarded-For '';
proxy_set_header X-Forwarded-Host '';
proxy_set_header X-Forwarded-Server '';
proxy_set_header X-Real-Ip '';
# Stops the local disk from being written to (just forwards data through) # Stops the local disk from being written to (just forwards data through)
proxy_max_temp_file_size 0; proxy_max_temp_file_size 0;