Added Kanidm with nginx

This commit is contained in:
2026-05-15 10:31:31 +02:00
parent c0b0d89fcf
commit 8201bc4bf5
5 changed files with 70 additions and 29 deletions
+10
View File
@@ -19,6 +19,15 @@ let
proxyWebsockets = true;
};
};
mkHttpsProxy = port: {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "https://${upstream}:${toString port}";
extraConfig = "proxy_ssl_verify off;";
};
};
in
{
networking.firewall.allowedTCPPorts = [
@@ -50,6 +59,7 @@ in
"ngx.cyperpunk.de" = mkWsProxy 28101;
"vault.cyperpunk.de" = mkWsProxy 8222;
"calvin.cyperpunk.de" = mkWsProxy 15006;
"auth.cyperpunk.de" = mkHttpsProxy 8443;
"www.cyperpunk.de" = {
forceSSL = true;