nuc: add authentik-ldap

This commit is contained in:
Rouven Seifert 2024-05-23 09:25:08 +02:00
parent 657ae1385e
commit 7811c95ecf
8 changed files with 23 additions and 54 deletions

View file

@ -3,17 +3,19 @@ let
domain = "auth.${config.networking.domain}";
in
{
age.secrets.authentik = {
file = ../../../../secrets/nuc/authentik.age;
age.secrets.authentik-core = {
file = ../../../../secrets/nuc/authentik/core.age;
};
age.secrets.authentik-ldap = {
file = ../../../../secrets/nuc/authentik/ldap.age;
};
services.authentik = {
enable = true;
environmentFile = config.age.secrets.authentik.path;
# nginx = {
# enable = true;
# enableACME = true;
# host = domain;
# };
environmentFile = config.age.secrets.authentik-core.path;
};
services.authentik-ldap = {
enable = true;
environmentFile = config.age.secrets.authentik-ldap.path;
};
services.caddy.virtualHosts."${domain}".extraConfig = ''
reverse_proxy localhost:9000