From 9319694d25812fbf490fef499f117d5d96e8e40d Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 17 Jun 2025 08:52:33 -0700 Subject: [PATCH] nixos/onlyoffice: add wopi setting Expose setting for enabling WOPI support flag in onlyoffice. It's useful and previously was hard-coded to disabled. See https://api.onlyoffice.com/docs/docs-api/more-information/faq/using-wopi/ --- nixos/modules/services/web-apps/onlyoffice.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/onlyoffice.nix b/nixos/modules/services/web-apps/onlyoffice.nix index 2d0316761ab3..181baceb3c4c 100644 --- a/nixos/modules/services/web-apps/onlyoffice.nix +++ b/nixos/modules/services/web-apps/onlyoffice.nix @@ -97,6 +97,8 @@ in default = "amqp://guest:guest@localhost:5672"; description = "The Rabbitmq in amqp URI style OnlyOffice should connect to."; }; + + wopi = lib.mkEnableOption "Enable WOPI support"; }; config = lib.mkIf cfg.enable { @@ -314,7 +316,8 @@ in .services.CoAuthoring.secret.outbox.string = "'"$(cat ${cfg.jwtSecretFile})"'" | .services.CoAuthoring.secret.session.string = "'"$(cat ${cfg.jwtSecretFile})"'" | ''} - .rabbitmq.url = "${cfg.rabbitmqUrl}" + .rabbitmq.url = "${cfg.rabbitmqUrl}" | + .wopi.enable = "${toString cfg.wopi}" ' /run/onlyoffice/config/default.json | sponge /run/onlyoffice/config/default.json chmod u+w /run/onlyoffice/config/production-linux.json