X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Ftools%2Fgit%2Fdefault.nix;h=55f9ecb2b0f07a9e67297eb62aa830743d141142;hb=d3452fc59b9839846225fd254926c64a9c71f071;hp=a5f525bdad765308c97f6efc7f3e6fe637c8db37;hpb=ab8f306d7c2c49b8116e1af7b355ed2384617ed9;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/websites/tools/git/default.nix b/modules/private/websites/tools/git/default.nix index a5f525b..55f9ecb 100644 --- a/modules/private/websites/tools/git/default.nix +++ b/modules/private/websites/tools/git/default.nix @@ -19,8 +19,8 @@ in { services.websites.env.tools.modules = gitweb.apache.modules ++ mantisbt.apache.modules; - myServices.websites.webappDirs."${gitweb.apache.webappName}" = gitweb.webRoot; - myServices.websites.webappDirs."${mantisbt.apache.webappName}" = mantisbt.webRoot; + services.websites.webappDirs."${gitweb.apache.webappName}" = gitweb.webRoot; + services.websites.webappDirs."${mantisbt.apache.webappName}" = mantisbt.webRoot; system.activationScripts.mantisbt = mantisbt.activationScript; services.websites.env.tools.vhostConfs.git = { @@ -30,7 +30,7 @@ in { root = gitweb.apache.root; extraConfig = [ gitweb.apache.vhostConf - mantisbt.apache.vhostConf + (mantisbt.apache.vhostConf config.services.phpfpm.pools.mantisbt.socket) '' RewriteEngine on RewriteCond %{REQUEST_URI} ^/releases @@ -38,8 +38,12 @@ in { '' ]; }; - services.phpfpm.poolConfigs = { - mantisbt = mantisbt.phpFpm.pool; + services.phpfpm.pools = { + mantisbt = { + user = config.services.httpd.Tools.user; + group = config.services.httpd.Tools.group; + settings = mantisbt.phpFpm.pool; + }; }; }; }