allow lists for server_name
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-07-27 13:06:38 +02:00
parent ee131954c7
commit 5c5f2b82e4

View File

@ -12,7 +12,11 @@ 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 '' }};
{% if not server.server_name is string and server.server_name is iterable %}
server_name {{ server.server_name | join(" ") }};
{% else %}
server_name {{ server.server_name }}; server_name {{ server.server_name }};
{% endif %}
{% 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 }};