Browse Source

format nginx_extra_http_options with indent

http section in nginx.conf is indented by default. To increase
readability format the variable nginx_extra_http_options with
the same indent for multiline string blocks. Therefore indent
needs not to be done in yaml.
Daniel Wilhelm 8 years ago
parent
commit
f91ed1ffd4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      templates/nginx.conf.j2

+ 1 - 1
templates/nginx.conf.j2

@@ -42,7 +42,7 @@ http {
 {% endif %}
 {% endif %}
 
 
 {% if nginx_extra_http_options %}
 {% if nginx_extra_http_options %}
-    {{ nginx_extra_http_options }}
+    {{ nginx_extra_http_options|indent(4, False) }}
 {% endif %}
 {% endif %}
 
 
 {% for upstream in nginx_upstreams %}
 {% for upstream in nginx_upstreams %}