Changed phpfpm setting refactoring
* moved listen.owner from config to implemetation * moved listen.group from config to implementation * moved catch_workers_output from config to implementation
This commit is contained in:
parent
5f862fe8d3
commit
d7ee5fa774
@ -106,10 +106,6 @@ in
|
||||
phpfpm.settings = lib.mkOption {
|
||||
type = with lib.types; attrsOf (oneOf [ int str bool ]);
|
||||
default = {
|
||||
"listen.owner" = user;
|
||||
"listen.group" = group;
|
||||
"listen.mode" = "0660";
|
||||
|
||||
"pm" = "dynamic";
|
||||
"pm.start_servers" = "2";
|
||||
"pm.min_spare_servers" = "2";
|
||||
@ -121,8 +117,6 @@ in
|
||||
|
||||
"php_admin_value[error_log]" = "stderr";
|
||||
"php_admin_flag[log_errors]" = true;
|
||||
|
||||
"catch_workers_output" = true;
|
||||
};
|
||||
|
||||
description = ''
|
||||
@ -288,7 +282,13 @@ in
|
||||
|
||||
services.phpfpm.pools.invoice-ninja = {
|
||||
inherit user group phpPackage;
|
||||
inherit (cfg.phpfpm) settings;
|
||||
|
||||
settings = {
|
||||
"listen.owner" = user;
|
||||
"listen.group" = group;
|
||||
"listen.mode" = "0660";
|
||||
"catch_workers_output" = true;
|
||||
} // cfg.phpfpm.settings;
|
||||
|
||||
phpOptions = ''
|
||||
post_max_size = ${cfg.maxUploadSize}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user