fix some template formatting issues
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2019-07-18 15:55:52 +02:00
parent 8d56817ec4
commit 74db463d43
1 changed files with 3 additions and 1 deletions

View File

@ -13,8 +13,8 @@ upstream {{ item.upstream.name }} {
server {
listen {{ server.port }}{{ ' ssl' if server.tls is defined and server.tls else '' }};
server_name {{ server.server_name }};
{% if server.tls is defined and server.tls %}
ssl_certificate /etc/pki/tls/certs/{{ server.tls.cert }};
ssl_certificate_key /etc/pki/tls/private/{{ server.tls.key }};
{% if server.tls.dhparam is defined %}
@ -28,6 +28,7 @@ server {
{% if server.client_max_body_size is defined and server.client_max_body_size %}
client_max_body_size {{ server.client_max_body_size }};
{% endif %}
{% for location in server.locations %}
location {{ location.match }} {
{% if location.root is defined and location.root %}
@ -56,4 +57,5 @@ server {
}
{% endif %}
}
{% endfor %}