Add PID templating option (#267)

This commit is contained in:
Alessandro Fael Garcia 2020-06-24 12:19:09 +02:00 committed by GitHub
parent 77ccf86255
commit 902d4ff83f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@ nginx_main_template:
user: nginx user: nginx
worker_processes: auto worker_processes: auto
# worker_rlimit_nofile: 1024 # worker_rlimit_nofile: 1024
pid: /var/run/nginx.pid
error_log: error_log:
location: /var/log/nginx/error.log location: /var/log/nginx/error.log
level: warn level: warn

View File

@ -13,6 +13,7 @@
conf_file_location: /etc/nginx/ conf_file_location: /etc/nginx/
user: nginx user: nginx
worker_processes: auto worker_processes: auto
pid: /var/run/nginx.pid
error_log: error_log:
location: /var/log/nginx/error.log location: /var/log/nginx/error.log
level: warn level: warn

View File

@ -45,7 +45,7 @@ worker_rlimit_nofile {{ nginx_main_template.worker_rlimit_nofile }};
{% endif %} {% endif %}
error_log {{ nginx_main_template.error_log.location }} {{ nginx_main_template.error_log.level }}; error_log {{ nginx_main_template.error_log.location }} {{ nginx_main_template.error_log.level }};
pid /var/run/nginx.pid; pid {{ nginx_main_template.pid }};
events { events {