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 {
|
phpfpm.settings = lib.mkOption {
|
||||||
type = with lib.types; attrsOf (oneOf [ int str bool ]);
|
type = with lib.types; attrsOf (oneOf [ int str bool ]);
|
||||||
default = {
|
default = {
|
||||||
"listen.owner" = user;
|
|
||||||
"listen.group" = group;
|
|
||||||
"listen.mode" = "0660";
|
|
||||||
|
|
||||||
"pm" = "dynamic";
|
"pm" = "dynamic";
|
||||||
"pm.start_servers" = "2";
|
"pm.start_servers" = "2";
|
||||||
"pm.min_spare_servers" = "2";
|
"pm.min_spare_servers" = "2";
|
||||||
@ -121,8 +117,6 @@ in
|
|||||||
|
|
||||||
"php_admin_value[error_log]" = "stderr";
|
"php_admin_value[error_log]" = "stderr";
|
||||||
"php_admin_flag[log_errors]" = true;
|
"php_admin_flag[log_errors]" = true;
|
||||||
|
|
||||||
"catch_workers_output" = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
description = ''
|
description = ''
|
||||||
@ -288,7 +282,13 @@ in
|
|||||||
|
|
||||||
services.phpfpm.pools.invoice-ninja = {
|
services.phpfpm.pools.invoice-ninja = {
|
||||||
inherit user group phpPackage;
|
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 = ''
|
phpOptions = ''
|
||||||
post_max_size = ${cfg.maxUploadSize}
|
post_max_size = ${cfg.maxUploadSize}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user