Compare commits
2 commits
3dd868041e
...
2763fe8b15
| Author | SHA1 | Date | |
|---|---|---|---|
| 2763fe8b15 | |||
| d23e861625 |
1 changed files with 1 additions and 9 deletions
|
|
@ -46,14 +46,6 @@ let
|
|||
SESSION_SECURE_COOKIE = lib.boolToString cfg.backend.cookieSecure;
|
||||
};
|
||||
|
||||
fpmBaseEnvironment = lib.filterAttrs (
|
||||
environmentName: environmentValue: environmentValue != ""
|
||||
) appEnvironment;
|
||||
|
||||
fpmEnvironment = fpmBaseEnvironment // {
|
||||
APP_KEY = "$APP_KEY";
|
||||
};
|
||||
|
||||
artisan = "${phpPackage}/bin/php ${appDir}/artisan";
|
||||
|
||||
makeDirectoryRule = path: "d ${path} 0750 ${cfg.user} ${cfg.group} - -";
|
||||
|
|
@ -246,7 +238,6 @@ in
|
|||
services.phpfpm.pools.${poolName} = {
|
||||
inherit (cfg) user group;
|
||||
inherit phpPackage;
|
||||
phpEnv = fpmEnvironment;
|
||||
settings = {
|
||||
"catch_workers_output" = true;
|
||||
"clear_env" = "no";
|
||||
|
|
@ -292,6 +283,7 @@ in
|
|||
systemd.services.${phpfpmService} = {
|
||||
after = [ "${setupService}.service" ];
|
||||
requires = [ "${setupService}.service" ];
|
||||
environment = appEnvironment;
|
||||
serviceConfig = {
|
||||
EnvironmentFile = cfg.backend.environmentFile;
|
||||
ReadWritePaths = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue