feat: full config from docs
This commit is contained in:
parent
f4ebd7fe79
commit
62bb7aa2ea
1 changed files with 14 additions and 8 deletions
|
|
@ -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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue