Better display in _base.j2 with many server_name

pull/27/head
Emilien Mantel 2016-10-07 10:57:26 +02:00
parent c4ee6eb1a2
commit 64a9ab7c68
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ server {
include {{ nginx_helper_dir + '/ssl-' + item.ssl_template | default('strong') }};
{% endif %}
{% endif %}
server_name {% if item.name is string %}{{ item.name }}{% else %}{{ item.name | join(' ') }}{% endif %};
server_name {% if item.name is string %}{{ item.name }}{% else %}{{ "\n\t\t" }}{{ item.name | join("\n\t\t") }}{% endif %};
{% block root %}
{% if item.root is defined %}
root {{ item.root }};