fix some template formatting issues
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8d56817ec4
commit
74db463d43
@ -13,8 +13,8 @@ upstream {{ item.upstream.name }} {
|
|||||||
server {
|
server {
|
||||||
listen {{ server.port }}{{ ' ssl' if server.tls is defined and server.tls else '' }};
|
listen {{ server.port }}{{ ' ssl' if server.tls is defined and server.tls else '' }};
|
||||||
server_name {{ server.server_name }};
|
server_name {{ server.server_name }};
|
||||||
|
|
||||||
{% if server.tls is defined and server.tls %}
|
{% if server.tls is defined and server.tls %}
|
||||||
|
|
||||||
ssl_certificate /etc/pki/tls/certs/{{ server.tls.cert }};
|
ssl_certificate /etc/pki/tls/certs/{{ server.tls.cert }};
|
||||||
ssl_certificate_key /etc/pki/tls/private/{{ server.tls.key }};
|
ssl_certificate_key /etc/pki/tls/private/{{ server.tls.key }};
|
||||||
{% if server.tls.dhparam is defined %}
|
{% 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 %}
|
{% if server.client_max_body_size is defined and server.client_max_body_size %}
|
||||||
client_max_body_size {{ server.client_max_body_size }};
|
client_max_body_size {{ server.client_max_body_size }};
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for location in server.locations %}
|
{% for location in server.locations %}
|
||||||
location {{ location.match }} {
|
location {{ location.match }} {
|
||||||
{% if location.root is defined and location.root %}
|
{% if location.root is defined and location.root %}
|
||||||
@ -56,4 +57,5 @@ server {
|
|||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user