Fix SSL with multiple names

This commit is contained in:
Emilien Mantel
2020-02-04 11:07:21 +01:00
parent 8c3b1c7f13
commit d8f6088362
3 changed files with 10 additions and 3 deletions

View File

@@ -43,7 +43,7 @@
{%- endif %}
{%- endmacro %}
{% macro ssl(ssl_name) %}
{% for sn in nginx_ssl_pairs if (sn.name is defined and sn.name == ssl_name) %}
{% for sn in nginx_ssl_pairs if (sn.name is defined and (sn | nginx_site_name) == ssl_name) %}
ssl_certificate {{ sn | nginx_cert_path(nginx_ssl_dir) }};
ssl_certificate_key {{ sn | nginx_key_path(nginx_ssl_dir) }};
{% endfor %}