feat: full config from docs

This commit is contained in:
s-prechtl 2026-03-24 15:54:51 +01:00
parent f4ebd7fe79
commit 62bb7aa2ea

View file

@ -36,17 +36,23 @@ in
locations."/" = {
proxyPass = "http://localhost:2283";
proxyWebsockets = true;
# https://docs.immich.app/administration/reverse-proxy/
extraConfig = ''
client_max_body_size 0;
# allow large file uploads
client_max_body_size 50000M;
proxy_request_buffering off;
# disable buffering uploads to prevent OOM on reverse proxy server and make uploads twice as fast (no pause)
proxy_request_buffering off;
# Timeouts for large/slow uploads
proxy_connect_timeout 3600s;
proxy_send_timeout 3600s;
proxy_read_timeout 3600s;
send_timeout 3600s;
'';
# increase body buffer to avoid limiting upload speed
client_body_buffer_size 1024k;
# Set headers
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
'';
};
};
}