Browse Source

more messing with suppress newline in jinja

tags/v0.55.0
Kent Shultz 10 years ago
parent
commit
84d00fd56c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      nginx/templates/config.jinja

+ 2
- 2
nginx/templates/config.jinja View File

{% set use = nginx.get('events', {}).get('use', '') -%} {% set use = nginx.get('events', {}).get('use', '') -%}
{% if use -%} {% if use -%}
use {{ use }}; use {{ use }};
{% endif -%}
{% endif %}
} }


http { http {
access_log off; access_log off;
} }
{% endif -%} {% endif -%}
{% endif -%}
{% endif %}


include /etc/nginx/conf.d/*.conf; include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*.conf; include /etc/nginx/sites-enabled/*.conf;

Loading…
Cancel
Save