add portunus seeds file with basic groups, no users

This commit is contained in:
halcyon 2022-12-17 18:27:16 +01:00
parent 9776469317
commit f3ac390cf9
No known key found for this signature in database
GPG key ID: 7C1F2DA2BC929412
2 changed files with 35 additions and 10 deletions

View file

@ -0,0 +1,34 @@
{
"groups": [
{
"name": "admins",
"long-name": "Portunus Admins",
"members": [],
"permissions": {
"portunus": { "is-admin": true },
"ldap": { "can-read": true }
}
},
{
"name": "ifsr",
"long-name": "Mitglieder des ifsr",
"members": [],
"permissions": {
"portunus": { "is-admin": false },
"ldap": { "can-read": false }
}
},
{
"name": "strukturer",
"long-name": "Strukturer des ifsr",
"members": [],
"permissions": {
"portunus": { "is-admin": false },
"ldap": { "can-read": false }
}
}
],
"users": [
{}
]
}

View file

@ -50,15 +50,7 @@ in
tls = true; tls = true;
}; };
# TODO: wohin seed file? seedPath = "../config/portunus_seeds.json";
seedPath = "";
# falls wir das brauchen
# dex = {
# enable = true;
# ...
# };
# searchUserName = "xxx";
}; };
users.ldap = { users.ldap = {
@ -68,7 +60,6 @@ in
# useTLS = true; # nicht nötig weil ldaps domain festgelegt. würde sonst starttls auf port 389 versuchen # useTLS = true; # nicht nötig weil ldaps domain festgelegt. würde sonst starttls auf port 389 versuchen
}; };
# TODO: acme/letsencrypt oder andere lösung?
services.nginx = { services.nginx = {
enable = true; enable = true;
virtualHosts."${config.services.portunus.domain}" = { virtualHosts."${config.services.portunus.domain}" = {