pm.max_spare_servers = 3
''}'';
};
- apache = {
+ apache = rec {
user = "wwwrun";
group = "wwwrun";
modules = [ "proxy_fcgi" ];
+ webappName = "connexionswing_${environment}";
+ root = "/run/current-system/webapps/${webappName}";
vhostConf = ''
<FilesMatch "\.php$">
SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost"
ErrorDocument 401 "<html><meta http-equiv=\"refresh\" content=\"0;url=https://connexionswing.com\"></html>"
</Location>
- <Directory ${webRoot}>
+ <Directory ${root}>
Options Indexes FollowSymLinks MultiViews Includes
AllowOverride None
Require all granted
'' else ''
Use Stats connexionswing.com
- <Directory ${webRoot}>
+ <Directory ${root}>
Options Indexes FollowSymLinks MultiViews Includes
AllowOverride All
Require all granted
rm app/config/parameters.yml
ln -sf ${configRoot} app/config/parameters.yml
rm -rf var/{logs,cache}
- ln -sf ../../../../../../${varDir}/var/{logs,cache} var/
- ln -sf ../../../../../${varDir}/{medias,uploads} web/images/
+ ln -sf ${varDir}/var/{logs,cache} var/
+ ln -sf ${varDir}/{medias,uploads} web/images/
'';
});
webRoot = "${webappDir}/web";