Add new filter plugins related to SSL

This commit is contained in:
Emilien Mantel
2019-04-26 11:23:57 +02:00
parent 20d4b6829a
commit a8b062284e
3 changed files with 28 additions and 10 deletions

View File

@@ -41,8 +41,8 @@
{%- endmacro %}
{% macro ssl(ssl_name) %}
{% for sn in nginx_ssl_pairs if ((sn.name is string and sn.name == ssl_name) or (sn.name.0 == ssl_name)) %}
ssl_certificate {{ nginx_ssl_dir + '/' + ssl_name + '/' + ssl_name + '.crt' if sn.dest_cert is not defined else sn.dest_cert }};
ssl_certificate_key {{ nginx_ssl_dir + '/' + ssl_name + '/' + ssl_name + '.key' if sn.dest_key is not defined else sn.dest_key }};
ssl_certificate {{ sn | nginx_cert_path(nginx_ssl_dir) }};
ssl_certificate_key {{ sn | nginx_key_path(nginx_ssl_dir) }};
{% endfor %}
{%- endmacro %}
{% macro httpsredirect(name) %}