bunkerity / bunkerweb

🛡️ Open-source and next-generation Web Application Firewall (WAF)
https://www.bunkerweb.io
GNU Affero General Public License v3.0
6.12k stars 339 forks source link

[FEATURE] Make worker_processes parameter configurable #158

Closed jakearlen879 closed 3 years ago

jakearlen879 commented 3 years ago

What's needed and why?

Is it possible for the worker_processes parameter to be configurable with an environment variable? It'll be useful for performance tuning.

https://github.com/bunkerity/bunkerized-nginx/blob/master/confs/global/nginx.conf#L20

Implementations ideas

confs/global/nginx.conf: worker_processes {{ WORKER_PROCESSES }};

confs/global/nginx-temp.conf: worker_processes auto;

+ documentation

fl0ppy-d1sk commented 3 years ago

Hey @jakearlen879,

Nice suggestion, it won't hurt to add the WORKER_PROCESSES with a default value of auto in the next release.

fl0ppy-d1sk commented 3 years ago

Hello @jakearlen879,

The WORKER_PROCESSES is now available in the v1.3.0 release. See the list of environment variables for more information.