pm.max_spare_servers = 3
''}'';
};
- apache = {
+ apache = rec {
user = "wwwrun";
group = "wwwrun";
modules = [ "proxy_fcgi" ];
+ webappName = "aten_${environment}";
+ root = "/run/current-system/webapps/${webappName}";
vhostConf = ''
<FilesMatch "\.php$">
SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost"
</Location>
''}
- <Directory ${webRoot}>
+ <Directory ${root}>
Options Indexes FollowSymLinks MultiViews Includes
AllowOverride All
Require all granted
rm -rf var/{log,cache}
ln -sf ../../../../../../../${varDir}/{log,cache} var/
'';
- buildInputs = [ yarn2nix.yarn ];
+ buildInputs = [ yarnModules yarn2nix yarn2nix.yarn ];
});
webRoot = "${webappDir}/public";
};