From 48619f77a4b2c02ebc964a3b7afd7341c65dda11 Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Sun, 8 Aug 2021 12:00:00 +0000 Subject: nixos/tt-rss: make all php files read only Fixes: #55300 --- nixos/modules/services/web-apps/tt-rss.nix | 70 +++++++++++++++--------------- 1 file changed, 36 insertions(+), 34 deletions(-) (limited to 'nixos') diff --git a/nixos/modules/services/web-apps/tt-rss.nix b/nixos/modules/services/web-apps/tt-rss.nix index ed13845915c..bc18c824f39 100644 --- a/nixos/modules/services/web-apps/tt-rss.nix +++ b/nixos/modules/services/web-apps/tt-rss.nix @@ -6,10 +6,6 @@ let configVersion = 26; - cacheDir = "cache"; - lockDir = "lock"; - feedIconsDir = "feed-icons"; - dbPort = if cfg.database.port == null then (if cfg.database.type == "pgsql" then 5432 else 3306) else cfg.database.port; @@ -32,10 +28,10 @@ let 0 from pg_tables where tableowner = user"} \ | tail -n+3 | head -n-2 | sed -e 's/[ \n\t]*//') @@ -639,7 +641,7 @@ let serviceConfig = { User = "${cfg.user}"; Group = "tt_rss"; - ExecStart = "${pkgs.php}/bin/php ${cfg.root}/update.php --daemon --quiet"; + ExecStart = "${pkgs.php}/bin/php ${cfg.root}/www/update.php --daemon --quiet"; Restart = "on-failure"; RestartSec = "60"; SyslogIdentifier = "tt-rss"; -- cgit 1.4.1