fix some template formatting issues
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-07-18 15:55:52 +02:00
parent 8d56817ec4
commit 74db463d43

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 %}