mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix(access): increase max request size
This commit is contained in:
parent
e37624bb2a
commit
b9bf850ff9
1 changed files with 7 additions and 4 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
inherit (config.services) nginx tailscale;
|
inherit (config.services) nginx tailscale;
|
||||||
inherit (nginx) virtualHosts;
|
inherit (nginx) virtualHosts;
|
||||||
access = config.services.nginx.access.proxmox;
|
access = config.services.nginx.access.proxmox;
|
||||||
proxyPass = "https://reisen.local.gensokyo.zone:8006/";
|
proxyPass = "https://reisen.local.${config.networking.domain}:8006/";
|
||||||
unencrypted = pkgs.mkSnakeOil {
|
unencrypted = pkgs.mkSnakeOil {
|
||||||
name = "prox-local-cert";
|
name = "prox-local-cert";
|
||||||
domain = singleton "prox.local.${config.networking.domain}"
|
domain = singleton "prox.local.${config.networking.domain}"
|
||||||
|
|
@ -84,9 +84,12 @@ in {
|
||||||
internal;
|
internal;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 2048M;
|
||||||
|
'';
|
||||||
in {
|
in {
|
||||||
${access.domain} = {
|
${access.domain} = {
|
||||||
inherit locations;
|
inherit locations extraConfig;
|
||||||
};
|
};
|
||||||
${access.localDomain} = mkMerge [ {
|
${access.localDomain} = mkMerge [ {
|
||||||
inherit (virtualHosts.${access.domain}) useACMEHost;
|
inherit (virtualHosts.${access.domain}) useACMEHost;
|
||||||
|
|
@ -94,7 +97,7 @@ in {
|
||||||
forceSSL = mkDefault true;
|
forceSSL = mkDefault true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxy.websocket.enable = true;
|
proxy.websocket.enable = true;
|
||||||
inherit proxyPass;
|
inherit proxyPass extraConfig;
|
||||||
};
|
};
|
||||||
} sslHost ];
|
} sslHost ];
|
||||||
${access.tailDomain} = mkIf tailscale.enable (mkMerge [ {
|
${access.tailDomain} = mkIf tailscale.enable (mkMerge [ {
|
||||||
|
|
@ -103,7 +106,7 @@ in {
|
||||||
local.enable = mkDefault true;
|
local.enable = mkDefault true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxy.websocket.enable = true;
|
proxy.websocket.enable = true;
|
||||||
inherit proxyPass;
|
inherit proxyPass extraConfig;
|
||||||
};
|
};
|
||||||
} sslHost ]);
|
} sslHost ]);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue