feat: Added ldap

This commit is contained in:
uttarayan21
2025-07-28 18:21:46 +05:30
parent 5c1b79f748
commit 94f9288a88
3 changed files with 27 additions and 2 deletions

View File

@@ -14,6 +14,7 @@
./flaresolverr.nix
./searxng.nix
./immich.nix
./ldap.nix
# ./home-assistant.nix
# ./jellyfin.nix

View File

@@ -9,10 +9,10 @@
ldap_user_dn = "admin";
ldap_base_dn = "dc=darksailor,dc=dev";
ldap_user_email = "admin@darksailor.dev";
http_host = "0.0.0.0";
http_host = "127.0.0.1";
http_port = 5090;
ldap_port = 389;
ldap_host = "0.0.0.0";
ldap_host = "::";
environment = {
LLDAP_JWT_SECRET_FILE = config.sops.secrets."lldap/jwt".path;
LLDAP_KEY_SEED_FILE = config.sops.secrets."lldap/seed".path;

View File

@@ -0,0 +1,24 @@
{config, ...}: {
sops = {
secrets = let
user = config.systemd.services.lldap.serviceConfig.User;
in {
"ldap/aaa".owner = user;
};
};
services = {
lldap = {
enable = true;
settings = {
http_host = "/var/run/lldb/lldb.sock";
ldap_user_dn = "admin";
ldap_base_dn = "dc=darksailor,dc=dev";
};
};
caddy = {
virtualHosts."ldap.darksailor.dev".extraConfig = ''
reverse_proxy unix//var/run/lldb/lldb.sock
'';
};
};
}