Add setting worker_rlimit_nofile (#164)

* Add setting worker_rlimit_nofile
This commit is contained in:
Benoit de Chezelles 2019-08-23 16:00:20 +02:00 committed by Alessandro Fael Garcia
parent a92d424bdb
commit 3b0e39f870
3 changed files with 6 additions and 0 deletions

View File

@ -335,6 +335,7 @@ nginx_main_template:
conf_file_location: /etc/nginx/
user: nginx
worker_processes: auto
#worker_rlimit_nofile: 1024
error_level: warn
worker_connections: 1024
http_enable: true

View File

@ -146,6 +146,7 @@ nginx_main_template:
conf_file_location: /etc/nginx/
user: nginx
worker_processes: auto
#worker_rlimit_nofile: 1024
error_level: warn
worker_connections: 1024
http_enable: true

View File

@ -34,6 +34,10 @@ load_module modules/ngx_http_modsecurity_module.so;
user {{ nginx_main_template.user }};
worker_processes {{ nginx_main_template.worker_processes }};
{% if nginx_main_template.worker_rlimit_nofile is defined %}
worker_rlimit_nofile {{ nginx_main_template.worker_rlimit_nofile }};
{% endif %}
error_log /var/log/nginx/error.log {{ nginx_main_template.error_level }};
pid /var/run/nginx.pid;