Try and set database for onlyoffice
This commit is contained in:
parent
a534f0f44d
commit
21b6285cd1
|
@ -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";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue