allow lists for server_name
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
ee131954c7
commit
5c5f2b82e4
@ -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 }};
|
||||||
|
Loading…
Reference in New Issue
Block a user