Try and set database for onlyoffice

This commit is contained in:
Lillian-Violet 2023-11-23 20:16:43 +01:00
parent a534f0f44d
commit 21b6285cd1

View file

@ -76,6 +76,9 @@
services.onlyoffice = {
enable = true;
hostname = "onlyoffice.gladtherescake.eu";
postgresHost = "/run/postgesql";
postgresUser = "onlyoffice";
postgresName = "onlyoffice";
jwtSecretFile = config.sops.secrets."local.json".path;
};
@ -84,12 +87,16 @@
enable = true;
# Ensure the database, user, and permissions always exist
ensureDatabases = ["nextcloud"];
ensureDatabases = ["nextcloud" "onlyoffice"];
ensureUsers = [
{
name = "nextcloud";
ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES";
}
{
name = "onlyoffice";
ensurePermissions."DATABASE onlyoffice" = "ALL PRIVILEGES";
}
];
};