From 505602bd73d576c1e67b85a9a36bc0a736a4b277 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 29 Oct 2023 23:04:33 +0100 Subject: [PATCH] fix: set max body size to 1G for forgejo --- hosts/nachtigall/apps/forgejo.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/nachtigall/apps/forgejo.nix b/hosts/nachtigall/apps/forgejo.nix index 187b9690..e18d2768 100644 --- a/hosts/nachtigall/apps/forgejo.nix +++ b/hosts/nachtigall/apps/forgejo.nix @@ -25,7 +25,12 @@ return 302 /user/oauth2/keycloak; ''; - locations."/".proxyPass = "http://127.0.0.1:3000"; + locations."/" = { + proxyPass = "http://127.0.0.1:3000"; + extraConfig = '' + client_max_body_size 1G; + ''; + }; }; services.gitea = {