Use recommended proxy settings for Garage

This commit is contained in:
Nicolas Jeannerod 2024-10-30 18:37:45 +00:00
parent e299978508
commit 96acf1f10d

View file

@ -170,7 +170,11 @@ in
locations."/" = { locations."/" = {
proxyPass = "http://localhost:3902"; proxyPass = "http://localhost:3902";
extraConfig = '' extraConfig = ''
## copied from https://garagehq.deuxfleurs.fr/documentation/cookbook/reverse-proxy/
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Disable buffering to a temporary file.
proxy_max_temp_file_size 0;
''; '';
}; };
}; };