diff --git a/nixos/hosts/ingress-proxy/default.nix b/nixos/hosts/ingress-proxy/default.nix index 8d4da80..63a74a5 100644 --- a/nixos/hosts/ingress-proxy/default.nix +++ b/nixos/hosts/ingress-proxy/default.nix @@ -18,6 +18,8 @@ in { networking.firewall.allowedUDPPorts = [ 80 443 ]; services.nginx = { + package = pkgs.tengine; + recommendedBrotliSettings = true; recommendedGzipSettings = true; recommendedZstdSettings = true; @@ -43,7 +45,9 @@ in { virtualHosts = let defaultConfig = { listen = [ + { addr = "0.0.0.0"; port = 80; } { addr = "0.0.0.0"; port = 443; ssl = true; } + { addr = "[::]"; port = 80; } { addr = "[::]"; port = 443; ssl = true; } ]; http2 = true; @@ -75,13 +79,8 @@ in { } // defaultConfig; in { "mekanoe.com" = mekanoesh; - "noe.sh" = mekanoesh; - "oc.mekanoe.com" = placeholder // { - serverAliases = [ "" ]; - }; - "kitsu.love" = static { url = "https://codeberg.org/Vivieraaa/kitsu-site.git"; rev = "f669f68f1bf89c8f161627e994c9c865811964e8"; @@ -93,7 +92,7 @@ in { serverAliases = [ "metagame-new.ps2.live" ]; }; - "doll.repair" = static { src = flakePackage "doll-repair"; }; + "doll.repair" = static { src = flakePackage "doll-repair"; } // { forceSSL = false; }; # "porcelain.doll.repair" = { # locations."/" = { @@ -107,7 +106,7 @@ in { # add_header X-Cache $upstream_cache_status; # ''; # }; - # } // defaultConfig; + # } // defaultConfig // { forceSSL = false; }; }; };