hosts: server: enable postgres for onlyoffice

This commit is contained in:
Kabbone 2024-01-13 12:25:14 +01:00
parent 5f925a20a4
commit 9fea252f2c
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
5 changed files with 31 additions and 0 deletions

View File

@ -46,6 +46,10 @@
services.onlyoffice = {
enable = true;
hostname = "localhost";
postgresName = "onlyofficedb";
postgresHost = "localhost";
postgresUser = "onlyoffice";
postgresPasswordFile = config.age.secrets."services/nextcloud/onlyofficedb".path;
};
services.redis = {
@ -78,6 +82,10 @@
file = ../../../secrets/services/nextcloud/adminpassFile.age;
owner = "nextcloud";
};
age.secrets."services/nextcloud/onlyofficedb" = {
file = ../../../secrets/services/nextcloud/onlyofficedb.age;
owner = "onlyoffice";
};
systemd.services."nextcloud-setup" = {
requires = ["postgresql.service"];

View File

@ -29,6 +29,7 @@
host whatsappdb mautrixwa localhost scram-sha-256
host telegramdb mautrixtele localhost scram-sha-256
host signaldb mautrixsignal localhost scram-sha-256
host onlyofficedb onlyoffice localhost scram-sha-256
'';
initialScript = config.age.secrets."services/postgresql/initScript.sql".path;
};

View File

@ -62,6 +62,7 @@ in
"services/matrix/signal-registration.age".publicKeys = servers ++ users;
"services/nextcloud/adminpassFile.age".publicKeys = servers ++ users;
"services/nextcloud/dbpassFile.age".publicKeys = servers ++ users;
"services/nextcloud/onlyofficedb.age".publicKeys = servers ++ users;
"services/gitea/databasePassword.age".publicKeys = servers ++ users;
"services/gitea/mailerPassword.age".publicKeys = servers ++ users;
"services/gitea/runner-token.age".publicKeys = dmzs ++ users;

View File

@ -0,0 +1,21 @@
age-encryption.org/v1
-> ssh-ed25519 neExcQ ua8fTpZB6AlfOtoDVlTUPIAg8aPoi79AJVHyS6quMUM
4EC2U+h2OmwB4iQc5zA+OvQeQn/RJGgpfUl9vxB1O+o
-> ssh-rsa VtjGpQ
ioqNl02pKSYBd6jAR27FgxsPoOJy4HOcAVjzPlPF18EhHV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