nextcloud: added postgresql auth * identMap

This commit is contained in:
Serĉanto de Scio 2024-02-08 15:30:57 +10:00
parent 23500953d7
commit 45f68cc449
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA

View file

@ -47,6 +47,14 @@
services.postgresql = {
enable = true; # Ensure postgresql is enabled
authentication = ''
local nextcloud all ident map=nextcloud-users
'';
identMap =
# Map the forgejo user to postgresql
''
nextcloud-users nextcloud nextcloud
'';
ensureDatabases = ["nextcloud"]; # Ensure the database persists
ensureUsers = [
{