mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-10-23 03:24:04 +07:00
Fix SSL with multiple names
This commit is contained in:
1 parent
8c3b1c7f13
commit
d8f6088362
3 files changed
+10
-3
No files matched your search
@@ -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 %}
|
||||
|
||||
Reference in new issue
Block a user