increased H2WindowSize limit

Signed-off-by: -Denux <83671398+DenuxPlays@users.noreply.github.com>
This commit is contained in:
-Denux 2023-01-22 17:32:06 +01:00
parent 570b4820f8
commit 8227207490
No known key found for this signature in database
GPG key ID: 79531CEFB76EC104

View file

@ -56,7 +56,7 @@ Add this as a new Apache site config:
Protocols h2 h2c http/1.1 Protocols h2 h2c http/1.1
# Solves slow upload speeds caused by http2 # Solves slow upload speeds caused by http2
H2WindowSize 1048576 H2WindowSize 5242880
# SSL # SSL
SSLEngine on SSLEngine on
@ -259,9 +259,6 @@ server {
listen 443 ssl http2; listen 443 ssl http2;
listen [::]:443 ssl http2; # comment to disable IPv6 listen [::]:443 ssl http2; # comment to disable IPv6
# Solves slow upload speeds caused by http2
http2_body_preread_size 1048576;
server_name <your-nc-domain>; server_name <your-nc-domain>;
location / { location / {
@ -273,6 +270,8 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 86400s; proxy_read_timeout 86400s;
client_max_body_size 0; client_max_body_size 0;
# Solves slow upload speeds caused by http2
client_body_buffer_size 512k;
# Websocket # Websocket
proxy_http_version 1.1; proxy_http_version 1.1;