From 5f5c7267dc8c734eca2de87b5c0168523c9fa3b3 Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Thu, 1 May 2025 17:32:04 +0200 Subject: [PATCH] revert code domain --- hosts/hetzner-vpn2/nginx.nix | 66 ++++++++++++++++++------------------ 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/hosts/hetzner-vpn2/nginx.nix b/hosts/hetzner-vpn2/nginx.nix index ac37f25..ff00daa 100644 --- a/hosts/hetzner-vpn2/nginx.nix +++ b/hosts/hetzner-vpn2/nginx.nix @@ -20,40 +20,40 @@ recommendedOptimisation = true; virtualHosts = - let - servicesDomain = "services.zerforschen.plus"; - mkServiceConfig = - { host, port }: - { - addSSL = true; - enableACME = true; - locations."/" = { - proxyPass = "http://${host}:${toString port}/"; - extraConfig = '' - # bind to tailscale ip - proxy_bind 100.88.118.60; - # pam auth - limit_except OPTIONS { - auth_pam "Password Required"; - auth_pam_service_name "nginx"; - } - ''; - }; - }; - pc2 = "vinzenz-pc2.donkey-pentatonic.ts.net"; - in + #let + # servicesDomain = "services.zerforschen.plus"; + # mkServiceConfig = + # { host, port }: + # { + # addSSL = true; + # enableACME = true; + # locations."/" = { + # proxyPass = "http://${host}:${toString port}/"; + # extraConfig = '' + # # bind to tailscale ip + # proxy_bind 100.88.118.60; + # # pam auth + # limit_except OPTIONS { + # auth_pam "Password Required"; + # auth_pam_service_name "nginx"; + # } + # ''; + # }; + # }; + # pc2 = "vinzenz-pc2.donkey-pentatonic.ts.net"; + #in { - "code.${servicesDomain}" = lib.mkMerge [ - (mkServiceConfig { - host = pc2; - port = 8542; - }) - { locations."/".proxyWebsockets = true; } - ]; - "view.${servicesDomain}" = mkServiceConfig { - host = pc2; - port = 1313; - }; + #"code.${servicesDomain}" = lib.mkMerge [ + # (mkServiceConfig { + # host = pc2; + # port = 8542; + # }) + # { locations."/".proxyWebsockets = true; } + #]; + #"view.${servicesDomain}" = mkServiceConfig { + # host = pc2; + # port = 1313; + #}; "zerforschen.plus" = { addSSL = true;