From 52b440b5b3d6f8a248f754855bd502611694b52c Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Sun, 5 Oct 2025 23:15:57 -0500 Subject: [PATCH] add max body size --- hosts/h001/nginx.nix | 51 ++++++++++++++++++++----------------- hosts/oracle/o001/nginx.nix | 3 +++ 2 files changed, 31 insertions(+), 23 deletions(-) diff --git a/hosts/h001/nginx.nix b/hosts/h001/nginx.nix index 1095170..f7c0bac 100644 --- a/hosts/h001/nginx.nix +++ b/hosts/h001/nginx.nix @@ -8,32 +8,37 @@ let }; in { - services.nginx.virtualHosts = { - "10.12.14.10" = { - locations = { - "/" = { - return = "301 http://h001.local.joshuabell.xyz"; + services.nginx = { + appendHttpConfig = '' + client_max_body_size 500M; + ''; + virtualHosts = { + "10.12.14.10" = { + locations = { + "/" = { + return = "301 http://h001.local.joshuabell.xyz"; + }; }; }; - }; - "h001.local.joshuabell.xyz" = { - locations = { - "/" = homarr; - }; - }; - "100.64.0.13" = { - locations."/" = { - return = "301 http://h001.net.joshuabell.xyz"; - }; - }; - "h001.net.joshuabell.xyz" = { - locations = { - "/grafana/" = { - proxyPass = "http://localhost:3001"; - proxyWebsockets = true; - recommendedProxySettings = true; + "h001.local.joshuabell.xyz" = { + locations = { + "/" = homarr; + }; + }; + "100.64.0.13" = { + locations."/" = { + return = "301 http://h001.net.joshuabell.xyz"; + }; + }; + "h001.net.joshuabell.xyz" = { + locations = { + "/grafana/" = { + proxyPass = "http://localhost:3001"; + proxyWebsockets = true; + recommendedProxySettings = true; + }; + "/" = homarr; }; - "/" = homarr; }; }; }; diff --git a/hosts/oracle/o001/nginx.nix b/hosts/oracle/o001/nginx.nix index 5c74ace..29b484c 100644 --- a/hosts/oracle/o001/nginx.nix +++ b/hosts/oracle/o001/nginx.nix @@ -30,6 +30,9 @@ recommendedOptimisation = true; recommendedProxySettings = true; recommendedTlsSettings = true; + appendHttpConfig = '' + client_max_body_size 500M; + ''; virtualHosts = let tailnetConfig = {