Add onlyoffice service
This commit is contained in:
parent
5f2bbb255c
commit
a802422305
5 changed files with 39 additions and 10 deletions
|
@ -5,15 +5,16 @@ in
|
|||
{
|
||||
options.services.vm_onlyoffice = {
|
||||
enable = lib.mkEnableOption "Enable OnlyOffice service";
|
||||
pgsql_ip = lib.mkEnableOption "Postgres database IP address";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
services = {
|
||||
onlyoffice = {
|
||||
enable = true;
|
||||
hostname = "office.le43.eu";
|
||||
port = "8000";
|
||||
port = 8000;
|
||||
postgresName = "onlyoffice";
|
||||
postgresHost = "${cfg.db_ip}";
|
||||
postgresHost = "${cfg.pgsql_ip}";
|
||||
postgresUser = "onlyoffice";
|
||||
postgresPasswordFile = "/run/secrets/onlyoffice/office-dbpass";
|
||||
jwtSecretFile = "/run/secrets/onlyoffice/office-jwtpass";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue