FEATURE: Bump and allow customization of nginx worker_processes

MessageBus connections on busy sites can easily use more than the max
default number of connections.

Refer to http://nginx.org/en/docs/ngx_core_module.html#worker_connections
This commit is contained in:
Rafael dos Santos Silva 2022-02-17 16:54:08 -03:00
parent dc5b37c011
commit 65fa2054db
1 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,7 @@ params:
home: /var/www/discourse
upload_size: 10m
nginx_worker_connections: 4000
run:
- exec: thpoff echo "thpoff is installed!"
@ -135,6 +136,11 @@ run:
from: /client_max_body_size.+$/
to: client_max_body_size $upload_size ;
- replace:
filename: "/etc/nginx/conf.d/discourse.conf"
from: /worker_connections.+$/
to: worker_connections $nginx_worker_connections ;
- exec:
cmd: echo "done configuring web"
hook: web_config