Add setting worker_rlimit_nofile (#164)
* Add setting worker_rlimit_nofile
This commit is contained in:
parent
a92d424bdb
commit
3b0e39f870
@ -335,6 +335,7 @@ nginx_main_template:
|
|||||||
conf_file_location: /etc/nginx/
|
conf_file_location: /etc/nginx/
|
||||||
user: nginx
|
user: nginx
|
||||||
worker_processes: auto
|
worker_processes: auto
|
||||||
|
#worker_rlimit_nofile: 1024
|
||||||
error_level: warn
|
error_level: warn
|
||||||
worker_connections: 1024
|
worker_connections: 1024
|
||||||
http_enable: true
|
http_enable: true
|
||||||
|
@ -146,6 +146,7 @@ nginx_main_template:
|
|||||||
conf_file_location: /etc/nginx/
|
conf_file_location: /etc/nginx/
|
||||||
user: nginx
|
user: nginx
|
||||||
worker_processes: auto
|
worker_processes: auto
|
||||||
|
#worker_rlimit_nofile: 1024
|
||||||
error_level: warn
|
error_level: warn
|
||||||
worker_connections: 1024
|
worker_connections: 1024
|
||||||
http_enable: true
|
http_enable: true
|
||||||
|
@ -34,6 +34,10 @@ load_module modules/ngx_http_modsecurity_module.so;
|
|||||||
user {{ nginx_main_template.user }};
|
user {{ nginx_main_template.user }};
|
||||||
worker_processes {{ nginx_main_template.worker_processes }};
|
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 }};
|
error_log /var/log/nginx/error.log {{ nginx_main_template.error_level }};
|
||||||
pid /var/run/nginx.pid;
|
pid /var/run/nginx.pid;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user