feat: full config from docs
This commit is contained in:
parent
f4ebd7fe79
commit
62bb7aa2ea
1 changed files with 14 additions and 8 deletions
|
|
@ -36,16 +36,22 @@ in
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:2283";
|
proxyPass = "http://localhost:2283";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
|
# https://docs.immich.app/administration/reverse-proxy/
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
client_max_body_size 0;
|
# allow large file uploads
|
||||||
|
client_max_body_size 50000M;
|
||||||
|
|
||||||
|
# disable buffering uploads to prevent OOM on reverse proxy server and make uploads twice as fast (no pause)
|
||||||
proxy_request_buffering off;
|
proxy_request_buffering off;
|
||||||
|
|
||||||
# Timeouts for large/slow uploads
|
# increase body buffer to avoid limiting upload speed
|
||||||
proxy_connect_timeout 3600s;
|
client_body_buffer_size 1024k;
|
||||||
proxy_send_timeout 3600s;
|
|
||||||
proxy_read_timeout 3600s;
|
# Set headers
|
||||||
send_timeout 3600s;
|
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;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue