diff --git a/nixos/hosts/ingress-proxy/default.nix b/nixos/hosts/ingress-proxy/default.nix index 6e01922..849b8b6 100644 --- a/nixos/hosts/ingress-proxy/default.nix +++ b/nixos/hosts/ingress-proxy/default.nix @@ -40,6 +40,8 @@ in rec { staticsites.servers."${tsHost "static-sites" 80}" = {}; ldr.servers."${tsHost "live-doll-repair" 80}" = {}; jitsi.servers."${tsHost "jitsi" 443}" = {}; + + pushps2.servers."push.planetside2.com:443" = {}; }; proxyCachePath."pdr" = { @@ -102,6 +104,18 @@ in rec { "metagame.ps2.live" = ps2live "metagame"; "i-pk.noe.sh" = ps2live "plapkit"; + "proxy.ps2.live" = { + locations."/" = { + recommendedProxySettings = true; + proxyPass = "https://pushps2"; + proxyWebsockets = true; + }; + extraConfig = '' + deny all; + allow 127.0.0.1 100.64.0.0/10 10.0.0.0/8 15.204.161.37 108.238.21.159 162.197.1.49; + ''; + }; + "flesh.doll.repair" = { serverAliases = [ "conference.flesh.doll.repair" "auth.flesh.doll.repair" ]; locations."/" = {