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;
# 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
{ {
addSSL = true; #"code.${servicesDomain}" = lib.mkMerge [
enableACME = true; # (mkServiceConfig {
locations."/" = { # host = pc2;
proxyPass = "http://${host}:${toString port}/"; # port = 8542;
extraConfig = '' # })
# bind to tailscale ip # { locations."/".proxyWebsockets = true; }
proxy_bind 100.88.118.60; #];
# pam auth #"view.${servicesDomain}" = mkServiceConfig {
limit_except OPTIONS { # host = pc2;
auth_pam "Password Required"; # port = 1313;
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;
};
"zerforschen.plus" = { "zerforschen.plus" = {
addSSL = true; addSSL = true;