Fix missing test condition with is defined

pull/182/head
Geoffroy Van Elsuve 5 years ago
parent e34b300d58
commit 012a4165c6
  1. 6
      templates/nginx.conf.j2

@ -7,7 +7,7 @@ pid {{ nginx_pidfile }};
worker_processes {{ nginx_worker_processes }}; worker_processes {{ nginx_worker_processes }};
{% endblock %} {% endblock %}
{% if nginx_extra_conf_options %} {% if nginx_extra_conf_options is defined %}
{{ nginx_extra_conf_options }} {{ nginx_extra_conf_options }}
{% endif %} {% endif %}
@ -41,7 +41,7 @@ http {
keepalive_requests {{ nginx_keepalive_requests }}; keepalive_requests {{ nginx_keepalive_requests }};
server_tokens {{ nginx_server_tokens }}; server_tokens {{ nginx_server_tokens }};
{% if nginx_proxy_cache_path %} {% if nginx_proxy_cache_path is defined %}
proxy_cache_path {{ nginx_proxy_cache_path }}; proxy_cache_path {{ nginx_proxy_cache_path }};
{% endif %} {% endif %}
{% endblock %} {% endblock %}
@ -50,7 +50,7 @@ http {
# gzip on; # gzip on;
{% endblock %} {% endblock %}
{% if nginx_extra_http_options %} {% if nginx_extra_http_options is defined %}
{{ nginx_extra_http_options|indent(4, False) }} {{ nginx_extra_http_options|indent(4, False) }}
{% endif %} {% endif %}