add idp and dashboard

This commit is contained in:
Satria 2026-03-01 17:19:07 +07:00
commit ec0ca0fcc5
5 changed files with 390 additions and 48 deletions

View file

@ -1,8 +1,10 @@
{ homelab, lib, ... }: let
base = "proxy.${homelab.domain}";
proxyMappings = {
"dns" = { dest = "http://localhost:8088"; auth = true; };
"cdn" = { dest = "http://localhost:3000"; auth = false; };
"dns" = { dest = "http://localhost:8088"; auth = true; };
"cdn" = { dest = "http://localhost:3000"; auth = false; };
"auth" = { dest = "http://localhost:1411"; auth = true; };
"@" = { dest = "http://localhost:5070"; auth = false; };
};
in {
users.users.nginx.extraGroups = [ "acme" ];
@ -29,7 +31,7 @@ in {
useACMEHost = base;
locations."/".return = "404";
};
} // lib.mapAttrs (subdomain: cfg: lib.nameValuePair (if subdomain == "@" then base else "${subdomain}.${base}") {
} // lib.mapAttrs' (subdomain: cfg: lib.nameValuePair (if subdomain == "@" then base else "${subdomain}.${base}") {
useACMEHost = base;
forceSSL = true;