From 7e87dbc55b0e8133f8fae6765278627b4f34c401 Mon Sep 17 00:00:00 2001 From: Alejandro Angulo Date: Sun, 8 Oct 2023 08:21:15 -0700 Subject: [PATCH] Made max upload size specific to location --- modules/services/octoprint/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/services/octoprint/default.nix b/modules/services/octoprint/default.nix index 4821509..cd393c4 100644 --- a/modules/services/octoprint/default.nix +++ b/modules/services/octoprint/default.nix @@ -26,12 +26,14 @@ in { services.nginx = { enable = true; recommendedProxySettings = true; - clientMaxBodySize = "32m"; virtualHosts."octoprint.kilonull.com" = { locations."/" = { proxyPass = "http://127.0.0.1:${toString config.services.octoprint.port}"; proxyWebsockets = true; + extraConfig = '' + client_max_body_size 32m; + ''; }; } // lib.optionalAttrs (cfg.acmeCertName != "") {