X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=nixops%2Fmodules%2Fwebsites%2Ftools%2Ftools%2Fttrss.nix;h=0fe94f9840cc7f71aeb1e12a2026a64313226814;hb=85f5ed68104de9edd8f8e532dc0c2de931e3ca1b;hp=76105be615c35f67aff5602700d6c46db16d80fb;hpb=01f21083a897b86bf148f1d2bb9c8edca4d3786a;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/websites/tools/tools/ttrss.nix b/nixops/modules/websites/tools/tools/ttrss.nix index 76105be..0fe94f9 100644 --- a/nixops/modules/websites/tools/tools/ttrss.nix +++ b/nixops/modules/websites/tools/tools/ttrss.nix @@ -52,94 +52,97 @@ let install -m 0750 -o ${apache.user} -g ${apache.group} -d ${varDir}/phpSessions ''; }; - config = writeText "config.php" '' - + Alias /ttrss "${root}" + DirectoryIndex index.php SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost" @@ -152,8 +155,9 @@ let ''; }; phpFpm = rec { + serviceDeps = [ "postgresql.service" "openldap.service" "tools-ttrss-key.service" ]; basedir = builtins.concatStringsSep ":" ( - [ webRoot config varDir ] + [ webRoot "/run/keys/webapps/tools-ttrss" varDir ] ++ lib.attrsets.mapAttrsToList (name: value: value) plugins); socket = "/var/run/phpfpm/ttrss.sock"; pool = ''