mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
nuc: add authentik-ldap
This commit is contained in:
parent
657ae1385e
commit
7811c95ecf
8 changed files with 23 additions and 54 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue