add max body size

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-10-05 23:15:57 -05:00
parent 3a572a9222
commit 52b440b5b3
2 changed files with 31 additions and 23 deletions

View file

@ -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;
};
};
};

View file

@ -30,6 +30,9 @@
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
appendHttpConfig = ''
client_max_body_size 500M;
'';
virtualHosts =
let
tailnetConfig = {