forked from c3d2/nix-config
hedgedoc: migrate ldap to nixos-modules
This commit is contained in:
parent
33333337c2
commit
f81678b3f1
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
hedgedoc = {
|
hedgedoc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
ldap.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
allowAnonymousEdits = true;
|
allowAnonymousEdits = true;
|
||||||
allowFreeURL = true;
|
allowFreeURL = true;
|
||||||
|
@ -27,16 +28,6 @@
|
||||||
};
|
};
|
||||||
defaultPermission = "freely";
|
defaultPermission = "freely";
|
||||||
domain = "hedgedoc.c3d2.de";
|
domain = "hedgedoc.c3d2.de";
|
||||||
# TODO: move to nixos-modules
|
|
||||||
ldap = {
|
|
||||||
url = "ldaps://auth.c3d2.de";
|
|
||||||
bindDn = "uid=search,ou=users,dc=c3d2,dc=de";
|
|
||||||
bindCredentials = "$bindCredentials";
|
|
||||||
searchBase = "ou=users,dc=c3d2,dc=de";
|
|
||||||
searchFilter = "(&(objectclass=person)(uid={{username}}))";
|
|
||||||
tlsca = "/etc/ssl/certs/ca-certificates.crt";
|
|
||||||
useridField = "uid";
|
|
||||||
};
|
|
||||||
loglevel = "warn";
|
loglevel = "warn";
|
||||||
protocolUseSSL = true;
|
protocolUseSSL = true;
|
||||||
sessionSecret = "$sessionSecret";
|
sessionSecret = "$sessionSecret";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user