diff --git a/nixos/hosts/ingress-proxy/default.nix b/nixos/hosts/ingress-proxy/default.nix index 20193b7..28b8597 100644 --- a/nixos/hosts/ingress-proxy/default.nix +++ b/nixos/hosts/ingress-proxy/default.nix @@ -18,7 +18,11 @@ in { networking.firewall.allowedUDPPorts = [ 80 443 ]; services.nginx = { + recommendedBrotliSettings = true; + recommendedGzipSettings = true; + recommendedZstdSettings = true; recommendedTlsSettings = true; + clientMaxBodySize = "150m"; upstreams = { ps2l_saerro.servers."${tsHost "ps2live" 8101}" = {}; @@ -33,6 +37,7 @@ in { inactive = "720m"; }; + virtualHosts = let defaultConfig = { listen = [ @@ -43,6 +48,7 @@ in { http3 = true; forceSSL = lib.mkDefault true; enableACME = true; + recommendedProxySettings = true; }; static = { src ? null, url ? null, rev ? null, aliases ? [] }: { serverAliases = aliases; @@ -88,7 +94,6 @@ in { "doll.repair" = static { src = flakePackage "doll-repair"; }; "porcelain.doll.repair" = { - clientMaxBodySize = "150m"; locations."/" = { recommendedProxySettings = true;