revert code domain

This commit is contained in:
Vinzenz Schroeter 2025-05-01 17:32:04 +02:00
parent 4aa418f562
commit 5f5c7267dc

View file

@ -20,40 +20,40 @@
recommendedOptimisation = true; recommendedOptimisation = true;
virtualHosts = virtualHosts =
let #let
servicesDomain = "services.zerforschen.plus"; # servicesDomain = "services.zerforschen.plus";
mkServiceConfig = # mkServiceConfig =
{ host, port }: # { host, port }:
{ # {
addSSL = true; # addSSL = true;
enableACME = true; # enableACME = true;
locations."/" = { # locations."/" = {
proxyPass = "http://${host}:${toString port}/"; # proxyPass = "http://${host}:${toString port}/";
extraConfig = '' # extraConfig = ''
# bind to tailscale ip # # bind to tailscale ip
proxy_bind 100.88.118.60; # proxy_bind 100.88.118.60;
# pam auth # # pam auth
limit_except OPTIONS { # limit_except OPTIONS {
auth_pam "Password Required"; # auth_pam "Password Required";
auth_pam_service_name "nginx"; # auth_pam_service_name "nginx";
} # }
''; # '';
}; # };
}; # };
pc2 = "vinzenz-pc2.donkey-pentatonic.ts.net"; # pc2 = "vinzenz-pc2.donkey-pentatonic.ts.net";
in #in
{ {
"code.${servicesDomain}" = lib.mkMerge [ #"code.${servicesDomain}" = lib.mkMerge [
(mkServiceConfig { # (mkServiceConfig {
host = pc2; # host = pc2;
port = 8542; # port = 8542;
}) # })
{ locations."/".proxyWebsockets = true; } # { locations."/".proxyWebsockets = true; }
]; #];
"view.${servicesDomain}" = mkServiceConfig { #"view.${servicesDomain}" = mkServiceConfig {
host = pc2; # host = pc2;
port = 1313; # port = 1313;
}; #};
"zerforschen.plus" = { "zerforschen.plus" = {
addSSL = true; addSSL = true;