X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Ftools%2Ftools%2Fttrss.nix;h=0fe94f9840cc7f71aeb1e12a2026a64313226814;hb=85f5ed68104de9edd8f8e532dc0c2de931e3ca1b;hp=9e6f98d4be435f3243dada8138660c710e72893c;hpb=591ebd877b8d5465da95fd7e212da5ef747944ca;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 9e6f98d..0fe94f9 100644 --- a/nixops/modules/websites/tools/tools/ttrss.nix +++ b/nixops/modules/websites/tools/tools/ttrss.nix @@ -52,89 +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" @@ -147,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 = ''