From dc64d8ca6009cf35a6079037bf60ddde7753b55c Mon Sep 17 00:00:00 2001 From: RGBCube Date: Thu, 27 Feb 2025 20:08:24 +0300 Subject: [PATCH] fix: increase max body size in nginx s3 --- hosts/best/garage/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/best/garage/default.nix b/hosts/best/garage/default.nix index 48b4417..6eba893 100644 --- a/hosts/best/garage/default.nix +++ b/hosts/best/garage/default.nix @@ -46,6 +46,10 @@ in { }; services.nginx.virtualHosts.${fqdnS3} = merge config.services.nginx.sslTemplate { + extraConfig = /* nginx */ '' + client_max_body_size 5g; + ''; + locations."/".proxyPass = "http://[::1]:${toString portS3}"; }; }