From 2c8960a7dce0b2940c50dadb9458cbda705f89a2 Mon Sep 17 00:00:00 2001 From: Ryan MacDonald Date: Wed, 3 May 2017 00:43:36 -0500 Subject: [PATCH] set is defined on use_method and resolver --- 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 92ebe82..c6a805d 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -8,7 +8,7 @@ worker_processes {{ nginx_worker_processes }}; events { worker_connections {{ nginx_worker_connections }}; multi_accept {{ nginx_multi_accept | default('off') }}; -{% if nginx_use_method %} +{% if nginx_use_method is defined %} use {{ nginx_use_method }}; {% endif %} } @@ -21,7 +21,7 @@ http { include {{ nginx_mime_file_path }}; default_type application/octet-stream; -{% if nginx_resolver %} +{% if nginx_resolver is defined %} resolver {{ nginx_resolver }}; {% endif %}