pm.max_spare_servers = 3
''}'';
};
+ keys."${environment}-aten" = {
+ destDir = "/run/keys/webapps";
+ user = apache.user;
+ group = apache.group;
+ permissions = "0700";
+ text = ''
+ SetEnv APP_ENV "${environment}"
+ SetEnv APP_SECRET "${config.secret}"
+ SetEnv DATABASE_URL "${config.psql_url}"
+ '';
+ };
apache = rec {
user = "wwwrun";
group = "wwwrun";
SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost"
</FilesMatch>
- SetEnv APP_ENV "${environment}"
- SetEnv APP_SECRET "${config.secret}"
- SetEnv DATABASE_URL "${config.psql_url}"
+ Include /run/keys/webapps/${environment}-aten
${if environment == "dev" then ''
<Location />
preInstall = ''
export SYMFONY_ENV="${environment}"
export APP_ENV="${environment}"
- export DATABASE_URL="${config.psql_url}"
- export APP_SECRET="${config.secret}"
'';
postInstall = ''
ln -sf ${yarnModules}/node_modules .