X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Ftools%2Fgit%2Fmantisbt%2Fmantisbt.nix;h=41c5e90a5c572848d23fd73615e90980d7536c77;hb=8db8e666707a0e51af9353c76c5863e1a5482ed5;hp=b564058c067db6bab7ed86107090e5d3c508f6e3;hpb=32c84ff89c2b8931f58cea63961a178a9b1d0efe;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/websites/tools/git/mantisbt/mantisbt.nix b/nixops/modules/websites/tools/git/mantisbt/mantisbt.nix index b564058..41c5e90 100644 --- a/nixops/modules/websites/tools/git/mantisbt/mantisbt.nix +++ b/nixops/modules/websites/tools/git/mantisbt/mantisbt.nix @@ -17,8 +17,8 @@ let }); }; in rec { - keys."tools-mantisbt" = { - destDir = "/run/keys/webapps"; + keys = [{ + dest = "webapps/tools-mantisbt"; user = apache.user; group = apache.group; permissions = "0400"; @@ -56,7 +56,7 @@ let $g_ldap_realname_field = 'cn'; $g_ldap_organization = '(memberOf=cn=users,cn=mantisbt,ou=services,dc=immae,dc=eu)'; ''; - }; + }]; webRoot = stdenv.mkDerivation rec { name = "mantisbt-${version}"; version = "2.11.1"; @@ -72,7 +72,7 @@ let ]; installPhase = '' cp -a . $out - ln -s /run/keys/webapps/tools-mantisbt $out/config/config_inc.php + ln -s /var/secrets/webapps/tools-mantisbt $out/config/config_inc.php ln -s ${plugins.slack} $out/plugins/Slack ln -s ${plugins.source-integration}/Source* $out/plugins/ ''; @@ -102,9 +102,9 @@ let ''; }; phpFpm = rec { - serviceDeps = [ "postgresql.service" "openldap.service" "tools-mantisbt-key.service" ]; + serviceDeps = [ "postgresql.service" "openldap.service" ]; basedir = builtins.concatStringsSep ":" ( - [ webRoot "/run/keys/webapps/tools-mantisbt" ] + [ webRoot "/var/secrets/webapps/tools-mantisbt" ] ++ lib.attrsets.mapAttrsToList (name: value: value) plugins); socket = "/var/run/phpfpm/mantisbt.sock"; pool = ''