From c1b707cc5bf093e8b7009d500d56b100eb651a9e Mon Sep 17 00:00:00 2001 From: Alessandro Fael Garcia Date: Tue, 30 Jun 2020 22:39:25 +0200 Subject: [PATCH] Add default values for PID and error log (#277) --- templates/nginx.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index e2b2536..fcd602f 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -44,8 +44,8 @@ worker_rlimit_nofile {{ nginx_main_template.worker_rlimit_nofile }}; {% endfor %} {% endif %} -error_log {{ nginx_main_template.error_log.location }} {{ nginx_main_template.error_log.level }}; -pid {{ nginx_main_template.pid }}; +error_log {{ nginx_main_template.error_log.location | default("/var/log/nginx/error.log") }} {{ nginx_main_template.error_log.level | default("warn") }}; +pid {{ nginx_main_template.pid | default("/var/run/nginx.pid") }}; events {