increase nginx limits to match the needs of bigger uploads
Programs like immich should be able to receive big files....
This commit is contained in:
parent
920c9db231
commit
17b1c0f5ab
1 changed files with 8 additions and 3 deletions
|
|
@ -83,8 +83,8 @@ http {
|
||||||
ssl_prefer_server_ciphers on;
|
ssl_prefer_server_ciphers on;
|
||||||
add_header Strict-Transport-Security max-age=15768000;
|
add_header Strict-Transport-Security max-age=15768000;
|
||||||
|
|
||||||
{# allow large file uploads, currently 500 meg. Should be increased if we really need big uploads #}
|
{# allow large file uploads, currently 50 gig. We expect the app to block if needed #}
|
||||||
client_max_body_size 500M;
|
client_max_body_size 50000M;
|
||||||
|
|
||||||
# Set headers
|
# Set headers
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
|
|
@ -92,6 +92,11 @@ http {
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
|
{# We do not buffer, otherwise we might end up string the full client_max_body size as a temp file. Let the upstream handle it #}
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_request_buffering off;
|
||||||
|
client_body_buffer_size 1024k;
|
||||||
|
|
||||||
{# enable websockets: http://nginx.org/en/docs/http/websocket.html #}
|
{# enable websockets: http://nginx.org/en/docs/http/websocket.html #}
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue