Closed gutobenn closed 3 months ago
allowing different settings for each environment.
The goal is for each environment (eg: production, staging, etc) and not per site? If so, this might be confusing since usually parameters under a site are meant to be site specific, but the config created is not site specific.
@swalkinshaw Thanks for the feedback! I've reformulated my solution.
It seems that the other parameters (e.g., php_fpm_pm_max_children
, php_fpm_pm_start_servers
, and so on) might already be overridden. Therefore, I adjusted the php-fpm-pool-wordpress.conf.j2 code to also support overriding the pm
.
Thanks @gutobenn
This PR adds support for overriding the value of 'pm' in PHP-FPM's pool config.
This can be done by setting a value to the variable
php_fpm_pm
, just like you can already do to other configs.Example: