Try and set database for onlyoffice
This commit is contained in:
parent
a534f0f44d
commit
21b6285cd1
|
@ -76,6 +76,9 @@
|
||||||
services.onlyoffice = {
|
services.onlyoffice = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostname = "onlyoffice.gladtherescake.eu";
|
hostname = "onlyoffice.gladtherescake.eu";
|
||||||
|
postgresHost = "/run/postgesql";
|
||||||
|
postgresUser = "onlyoffice";
|
||||||
|
postgresName = "onlyoffice";
|
||||||
jwtSecretFile = config.sops.secrets."local.json".path;
|
jwtSecretFile = config.sops.secrets."local.json".path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -84,12 +87,16 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# Ensure the database, user, and permissions always exist
|
# Ensure the database, user, and permissions always exist
|
||||||
ensureDatabases = ["nextcloud"];
|
ensureDatabases = ["nextcloud" "onlyoffice"];
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
{
|
{
|
||||||
name = "nextcloud";
|
name = "nextcloud";
|
||||||
ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES";
|
ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = "onlyoffice";
|
||||||
|
ensurePermissions."DATABASE onlyoffice" = "ALL PRIVILEGES";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue