Add onlyoffice service

This commit is contained in:
Théo Barnouin 2025-01-07 14:06:00 +01:00
parent 5f2bbb255c
commit a802422305
5 changed files with 39 additions and 10 deletions

View file

@ -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";