From e71cc0715acc78c57cb2c1ab1f753b541e3b8eb6 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 10 Feb 2024 20:19:35 +0900 Subject: feat(modules/atticd): fix 413 request entity too large --- modules/services/atticd.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'modules/services') diff --git a/modules/services/atticd.nix b/modules/services/atticd.nix index 444f6eb..fca181d 100644 --- a/modules/services/atticd.nix +++ b/modules/services/atticd.nix @@ -79,6 +79,18 @@ in } ]; + services.nginx.virtualHosts = builtins.listToAttrs (map (host: { + name = host; + value = { + extraConfig = '' + client_max_body_size 0; + + proxy_read_timeout 300s; + proxy_send_timeout 300s; + ''; + }; + }) cfg.hosts); + systemd.services.atticd-watch-store = mkIf cfg.watchStore { wantedBy = [ "multi-user.target" ]; wants = [ "network-online.target" ]; -- cgit 1.4.1