lldap: initial config

NOT active
This commit is contained in:
Payas Relekar 2023-06-23 17:26:10 +05:30
parent 8cea45adf2
commit 0678e47500

44
modules/lldap.nix Normal file
View file

@ -0,0 +1,44 @@
{ config, pkgs, ... }:
{
services = {
lldap = {
enable = true;
settings = {
ldap_user_email = "gandalf@bhankas.org";
ldap_user_dn = "gandalf";
ldap_port = 3890;
ldap_host = "0.0.0.0";
http_url = "https://ldap.bhankas.org";
http_port = 17170;
http_host = "0.0.0.0";
};
};
nginx = {
enable = true;
virtualHosts = {
"ldap.bhankas.org" = {
addSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:3890";
proxyWebsockets = false;
extraConfig =
"proxy_set_header Host $host;"
;
};
};
};
};
};
security.acme = {
acceptTerms = true;
certs = {
"ldap.bhankas.org" = {
email = "admin@bhankas.org";
dnsResolver = "1.1.1.1:53";
};
};
};
}