add max body size
This commit is contained in:
parent
3a572a9222
commit
52b440b5b3
2 changed files with 31 additions and 23 deletions
|
|
@ -8,32 +8,37 @@ let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.nginx.virtualHosts = {
|
services.nginx = {
|
||||||
"10.12.14.10" = {
|
appendHttpConfig = ''
|
||||||
locations = {
|
client_max_body_size 500M;
|
||||||
"/" = {
|
'';
|
||||||
return = "301 http://h001.local.joshuabell.xyz";
|
virtualHosts = {
|
||||||
|
"10.12.14.10" = {
|
||||||
|
locations = {
|
||||||
|
"/" = {
|
||||||
|
return = "301 http://h001.local.joshuabell.xyz";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
"h001.local.joshuabell.xyz" = {
|
||||||
"h001.local.joshuabell.xyz" = {
|
locations = {
|
||||||
locations = {
|
"/" = homarr;
|
||||||
"/" = homarr;
|
};
|
||||||
};
|
};
|
||||||
};
|
"100.64.0.13" = {
|
||||||
"100.64.0.13" = {
|
locations."/" = {
|
||||||
locations."/" = {
|
return = "301 http://h001.net.joshuabell.xyz";
|
||||||
return = "301 http://h001.net.joshuabell.xyz";
|
};
|
||||||
};
|
};
|
||||||
};
|
"h001.net.joshuabell.xyz" = {
|
||||||
"h001.net.joshuabell.xyz" = {
|
locations = {
|
||||||
locations = {
|
"/grafana/" = {
|
||||||
"/grafana/" = {
|
proxyPass = "http://localhost:3001";
|
||||||
proxyPass = "http://localhost:3001";
|
proxyWebsockets = true;
|
||||||
proxyWebsockets = true;
|
recommendedProxySettings = true;
|
||||||
recommendedProxySettings = true;
|
};
|
||||||
|
"/" = homarr;
|
||||||
};
|
};
|
||||||
"/" = homarr;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,9 @@
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
|
appendHttpConfig = ''
|
||||||
|
client_max_body_size 500M;
|
||||||
|
'';
|
||||||
virtualHosts =
|
virtualHosts =
|
||||||
let
|
let
|
||||||
tailnetConfig = {
|
tailnetConfig = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue