From 0f9e4925bd30a1a8d99bfeffc42598556fbe3c35 Mon Sep 17 00:00:00 2001 From: Artturin Date: Tue, 16 Dec 2025 14:16:30 +0200 Subject: [PATCH] nixos/onlyoffice: Add NOTE to `securityNonceFile` `JK6^MWnHuS04rgR0Gle*oCb6lEL2S!Nd0i6!aMNC27dxhu&ADq$vlwjNQY9VwNQr` gave ``` nginx: [emerg] unknown "vlwjnqy9vwnqr" variable nginx: configuration file /etc/nginx/nginx.conf test failed ``` I updated the system at the same time so it took a while to find the issue. --- nixos/modules/services/web-apps/onlyoffice.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/web-apps/onlyoffice.nix b/nixos/modules/services/web-apps/onlyoffice.nix index 2d0316761ab3..d60c8017afb0 100644 --- a/nixos/modules/services/web-apps/onlyoffice.nix +++ b/nixos/modules/services/web-apps/onlyoffice.nix @@ -34,6 +34,8 @@ in This file must be readable both by nginx and by the onlyoffice documentserver. Since nginx is added to the onlyoffice group, you may want to make the file readable to the onlyoffice group. + + NOTE: The file must be a valid nginx configuration file. The secret must not contain `$` characters, as they will be interpreted as variables by nginx. ''; };