pm.max_spare_servers = 3
''}'';
};
- apache = {
+ apache = rec {
user = "wwwrun";
group = "wwwrun";
modules = [ "proxy_fcgi" ];
+ webappName = "ludivine_${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://ludivinecassal.com\"></html>"
</Location>
- <Directory ${webRoot}>
+ <Directory ${root}>
Options Indexes FollowSymLinks MultiViews Includes
AllowOverride None
Require all granted
'' else ''
Use Stats ludivinecassal.com
- <Directory ${webRoot}>
+ <Directory ${root}>
Options Indexes FollowSymLinks MultiViews Includes
AllowOverride All
Require all granted
# bug in leapt.im (searches for data/../miniatures)
postInstall = ''
rm -rf var/{logs,cache,data,miniatures,tmp}
- ln -sf ../../../../../../../${varDir}/{logs,cache,data,miniatures,tmp} var/
+ ln -sf ${varDir}/{logs,cache,data,miniatures,tmp} var/
'';
buildInputs = [ sass ];
});