Skip to content

Commit c1b707c

Browse files
authored
Add default values for PID and error log (#277)
1 parent 7e6a7f0 commit c1b707c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/nginx.conf.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ worker_rlimit_nofile {{ nginx_main_template.worker_rlimit_nofile }};
4444
{% endfor %}
4545
{% endif %}
4646

47-
error_log {{ nginx_main_template.error_log.location }} {{ nginx_main_template.error_log.level }};
48-
pid {{ nginx_main_template.pid }};
47+
error_log {{ nginx_main_template.error_log.location | default("/var/log/nginx/error.log") }} {{ nginx_main_template.error_log.level | default("warn") }};
48+
pid {{ nginx_main_template.pid | default("/var/run/nginx.pid") }};
4949

5050

5151
events {

0 commit comments

Comments
 (0)