feat: Added ldap
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
./flaresolverr.nix
|
./flaresolverr.nix
|
||||||
./searxng.nix
|
./searxng.nix
|
||||||
./immich.nix
|
./immich.nix
|
||||||
|
./ldap.nix
|
||||||
|
|
||||||
# ./home-assistant.nix
|
# ./home-assistant.nix
|
||||||
# ./jellyfin.nix
|
# ./jellyfin.nix
|
||||||
|
|||||||
@@ -9,10 +9,10 @@
|
|||||||
ldap_user_dn = "admin";
|
ldap_user_dn = "admin";
|
||||||
ldap_base_dn = "dc=darksailor,dc=dev";
|
ldap_base_dn = "dc=darksailor,dc=dev";
|
||||||
ldap_user_email = "admin@darksailor.dev";
|
ldap_user_email = "admin@darksailor.dev";
|
||||||
http_host = "0.0.0.0";
|
http_host = "127.0.0.1";
|
||||||
http_port = 5090;
|
http_port = 5090;
|
||||||
ldap_port = 389;
|
ldap_port = 389;
|
||||||
ldap_host = "0.0.0.0";
|
ldap_host = "::";
|
||||||
environment = {
|
environment = {
|
||||||
LLDAP_JWT_SECRET_FILE = config.sops.secrets."lldap/jwt".path;
|
LLDAP_JWT_SECRET_FILE = config.sops.secrets."lldap/jwt".path;
|
||||||
LLDAP_KEY_SEED_FILE = config.sops.secrets."lldap/seed".path;
|
LLDAP_KEY_SEED_FILE = config.sops.secrets."lldap/seed".path;
|
||||||
|
|||||||
24
nixos/mirai/services/lldap.nix
Normal file
24
nixos/mirai/services/lldap.nix
Normal 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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user