diff options
author | sefidel <contact@sefidel.net> | 2024-02-10 20:19:35 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-02-10 20:23:29 +0900 |
commit | e71cc0715acc78c57cb2c1ab1f753b541e3b8eb6 (patch) | |
tree | 0cf2a5c18301a0651918260ad67e913814ba6a76 | |
parent | a4e195f503e03babce9ee483b59340fd07d09362 (diff) | |
download | nixrc-e71cc0715acc78c57cb2c1ab1f753b541e3b8eb6.tar.gz nixrc-e71cc0715acc78c57cb2c1ab1f753b541e3b8eb6.zip |
feat(modules/atticd): fix 413 request entity too large
-rw-r--r-- | modules/services/atticd.nix | 12 |
1 files changed, 12 insertions, 0 deletions
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" ]; |