From a2102b064f508d8ac57a52030c8b51f8605e3619 Mon Sep 17 00:00:00 2001 From: June Date: Sat, 27 Jul 2024 21:05:58 +0200 Subject: [PATCH] Fix container registry image uploads for git server Do this by disabling checking of client request body size. --- config/hosts/git/nginx.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/hosts/git/nginx.nix b/config/hosts/git/nginx.nix index 1dd0aad..ea1a2ac 100644 --- a/config/hosts/git/nginx.nix +++ b/config/hosts/git/nginx.nix @@ -34,6 +34,10 @@ return = "200 \"User-agent: *\\nDisallow: /*/*/archive/\\n\""; }; }; + + # Disable checking of client request body size to make container registry + # image uploads work. + clientMaxBodySize = "0"; }; networking.firewall.allowedTCPPorts = [ 80 443 ];