Initial commit.
This commit is contained in:
commit
67823cbed6
51 changed files with 1714 additions and 0 deletions
25
roles/lldap.nix
Normal file
25
roles/lldap.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
services = {
|
||||
postgresql = {
|
||||
ensureDatabases = [ "lldap" ];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "lldap";
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
lldap = {
|
||||
enable = true;
|
||||
settings = {
|
||||
ldap_user_email = "nolan@thewordnerd.info";
|
||||
ldap_base_dn = "dc=thewordnerd,dc=info";
|
||||
http_url = "https://users.thewordnerd.info";
|
||||
database_url = "postgres://lldap@localhost/lldap";
|
||||
};
|
||||
};
|
||||
};
|
||||
networking.firewall.interfaces."ve-+".allowedTCPPorts = [
|
||||
3890
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue