nginx config default should use the error.fifo

This commit is contained in:
Robert Fairburn 2014-10-21 16:48:30 -05:00
parent 296eecd7b9
commit 4e231126e2

View File

@ -9,7 +9,7 @@ worker_processes {{ nginx.get('worker_processes', 1) }};
worker_rlimit_nofile {{ worker_rlimit_nofile }};
{% endif -%}
{% set error_log_location = nginx.get('error_log',{}).get('location', '/var/log/nginx/error.log') -%}
{% set error_log_location = nginx.get('error_log',{}).get('location', '/var/log/nginx/error.fifo') -%}
{% set error_log_level = nginx.get('error_log',{}).get('level', 'warn') -%}
error_log {{ ' '.join([error_log_location, error_log_level]) }};
pid {{ nginx.get('pid', '/var/run/nginx.pid') }};