From 47db75aa0db11fd877777ce46ad34f69fbefac46 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Thu, 30 Nov 2023 10:58:14 -0600 Subject: [PATCH] attempt to optimize nextcloud upload buffer --- server/nginx.nix | 10 ++++++++++ server/servers.nix | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/server/nginx.nix b/server/nginx.nix index ed61dcc..d25526e 100644 --- a/server/nginx.nix +++ b/server/nginx.nix @@ -71,6 +71,16 @@ in { proxy_cache_path /var/cache/nginx/jellyfin levels=1:2 keys_zone=jellyfin:100m max_size=15g inactive=30d use_temp_path=off; map $request_uri $h264Level { ~(h264-level=)(.+?)& $2; } map $request_uri $h264Profile { ~(h264-profile=)(.+?)& $2; } + + + ## upload configs + proxy_read_timeout 600; + proxy_connect_timeout 600; + proxy_send_timeout 600; + send_timeout 600; + fastcgi_read_timeout 600; + # client_max_body_size 0; + fastcgi_buffers 64 4k; ''; virtualHosts = let base = locations: { diff --git a/server/servers.nix b/server/servers.nix index 8b4062f..e819b48 100644 --- a/server/servers.nix +++ b/server/servers.nix @@ -96,7 +96,7 @@ in { configureRedis = true; extraAppsEnable = true; enableImagemagick = true; - maxUploadSize = "512M"; + maxUploadSize = "25G"; hostName = "cloud.servidos.lat"; config = { adminpassFile = "${pkgs.writeText "adminpass" @@ -124,6 +124,8 @@ in { "opcache.jit" = "1255"; "opcache.jit_buffer_size" = "128M"; "opcache.max_accelerated_files" = "10000"; + "opcache.huge_code_pages" = "1"; + "opcache.enable_file_override" = "1"; "opcache.memory_consumption" = "128"; "opcache.revalidate_freq" = "1"; "opcache.save_comments" = "1";