Loading nixos/modules/services/web-apps/onlyoffice.nix +6 −10 Original line number Diff line number Diff line Loading @@ -124,7 +124,6 @@ in "~ ^(\\/[\\d]+\\.[\\d]+\\.[\\d]+[\\.|-][\\w]+)?\\/(document_editor_service_worker\\.js)$".extraConfig = '' expires 365d; # gzip_static on; alias ${cfg.package}/var/www/onlyoffice/documentserver/sdkjs/common/serviceworker/$2; ''; # suppress logging the unsupported locale error in web-apps Loading @@ -137,13 +136,11 @@ in "~ ^(\\/[\\d]+\\.[\\d]+\\.[\\d]+[\\.|-][\\w]+)?\\/(sdkjs-plugins)(\\/.*\\.json)$".extraConfig = '' expires 365d; error_log /dev/null crit; # gzip_static on; alias ${cfg.package}/var/www/onlyoffice/documentserver/$2$3; ''; "~ ^(\\/[\\d]+\\.[\\d]+\\.[\\d]+[\\.|-][\\w]+)?\\/(web-apps|sdkjs|sdkjs-plugins|fonts|dictionaries)(\\/.*)$".extraConfig = '' expires 365d; # gzip_static on; alias ${cfg.package}/var/www/onlyoffice/documentserver/$2$3; ''; "~* ^(\\/cache\\/files.*)(\\/.*)".extraConfig = '' Loading Loading @@ -302,9 +299,8 @@ in ' /run/onlyoffice/config/default.json | sponge /run/onlyoffice/config/default.json chmod u+w /run/onlyoffice/config/production-linux.json jq ' .FileConverter.converter.x2tPath = "${cfg.x2t}/bin/x2t" ' /run/onlyoffice/config/production-linux.json | sponge /run/onlyoffice/config/production-linux.json jq '.FileConverter.converter.x2tPath = "${cfg.x2t}/bin/x2t"' \ /run/onlyoffice/config/production-linux.json | sponge /run/onlyoffice/config/production-linux.json if psql -d onlyoffice -c "SELECT 'task_result'::regclass;" >/dev/null; then psql -f ${cfg.package}/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql Loading Loading
nixos/modules/services/web-apps/onlyoffice.nix +6 −10 Original line number Diff line number Diff line Loading @@ -124,7 +124,6 @@ in "~ ^(\\/[\\d]+\\.[\\d]+\\.[\\d]+[\\.|-][\\w]+)?\\/(document_editor_service_worker\\.js)$".extraConfig = '' expires 365d; # gzip_static on; alias ${cfg.package}/var/www/onlyoffice/documentserver/sdkjs/common/serviceworker/$2; ''; # suppress logging the unsupported locale error in web-apps Loading @@ -137,13 +136,11 @@ in "~ ^(\\/[\\d]+\\.[\\d]+\\.[\\d]+[\\.|-][\\w]+)?\\/(sdkjs-plugins)(\\/.*\\.json)$".extraConfig = '' expires 365d; error_log /dev/null crit; # gzip_static on; alias ${cfg.package}/var/www/onlyoffice/documentserver/$2$3; ''; "~ ^(\\/[\\d]+\\.[\\d]+\\.[\\d]+[\\.|-][\\w]+)?\\/(web-apps|sdkjs|sdkjs-plugins|fonts|dictionaries)(\\/.*)$".extraConfig = '' expires 365d; # gzip_static on; alias ${cfg.package}/var/www/onlyoffice/documentserver/$2$3; ''; "~* ^(\\/cache\\/files.*)(\\/.*)".extraConfig = '' Loading Loading @@ -302,9 +299,8 @@ in ' /run/onlyoffice/config/default.json | sponge /run/onlyoffice/config/default.json chmod u+w /run/onlyoffice/config/production-linux.json jq ' .FileConverter.converter.x2tPath = "${cfg.x2t}/bin/x2t" ' /run/onlyoffice/config/production-linux.json | sponge /run/onlyoffice/config/production-linux.json jq '.FileConverter.converter.x2tPath = "${cfg.x2t}/bin/x2t"' \ /run/onlyoffice/config/production-linux.json | sponge /run/onlyoffice/config/production-linux.json if psql -d onlyoffice -c "SELECT 'task_result'::regclass;" >/dev/null; then psql -f ${cfg.package}/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql Loading