mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-11-09 13:42:55 +08:00
improve upload speeds in nginx template
Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
parent
e4b0998f3c
commit
d74d7f9a67
1 changed files with 9 additions and 6 deletions
|
|
@ -362,6 +362,14 @@ server {
|
|||
# quic_retry on; # uncomment to enable HTTP/3 / QUIC - supported on nginx v1.25.0+
|
||||
# add_header Alt-Svc 'h3=":443"; ma=86400'; # uncomment to enable HTTP/3 / QUIC - supported on nginx v1.25.0+
|
||||
|
||||
proxy_buffering off;
|
||||
proxy_request_buffering off;
|
||||
|
||||
client_max_body_size 0;
|
||||
client_body_buffer_size 1m;
|
||||
http3_stream_buffer_size 1m;
|
||||
proxy_read_timeout 86400s;
|
||||
|
||||
server_name <your-nc-domain>;
|
||||
|
||||
location / {
|
||||
|
|
@ -375,11 +383,6 @@ server {
|
|||
proxy_set_header Host $host;
|
||||
proxy_set_header Early-Data $ssl_early_data;
|
||||
|
||||
proxy_buffering off;
|
||||
proxy_request_buffering off;
|
||||
proxy_read_timeout 86400s;
|
||||
client_max_body_size 0;
|
||||
|
||||
# Websocket
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
|
|
@ -434,7 +437,7 @@ Second, see these screenshots for a working config:
|
|||

|
||||
|
||||
```
|
||||
client_body_buffer_size 512k;
|
||||
client_body_buffer_size 1m;
|
||||
proxy_read_timeout 86400s;
|
||||
client_max_body_size 0;
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue