Fix redirect_to_first with no instance_name
This commit is contained in:
parent
ff9922aba4
commit
a410d16e9c
@ -65,10 +65,10 @@ server {
|
||||
{% if ssl_certificate is defined -%}
|
||||
{{ ssl_certificate | indent(4) }}
|
||||
{% elif instance_name is defined -%}
|
||||
ssl_certificate /etc/ssl/csr/{{ instance_name }}-fullchain.crt;
|
||||
ssl_certificate /etc/ssl/csr/{{ instance_name }}-fullchain.crt;
|
||||
ssl_certificate_key /etc/ssl/private/{{ instance_name }}.pem;
|
||||
{% else -%}
|
||||
ssl_certificate /etc/ssl/csr/{{ domains[0] }}-fullchain.crt;
|
||||
ssl_certificate /etc/ssl/csr/{{ domains[0] }}-fullchain.crt;
|
||||
ssl_certificate_key /etc/ssl/private/{{ domains[0] }}.pem;
|
||||
{% endif %}
|
||||
|
||||
@ -110,8 +110,8 @@ server {
|
||||
ssl_certificate /etc/ssl/csr/{{ instance_name }}-fullchain.crt;
|
||||
ssl_certificate_key /etc/ssl/private/{{ instance_name }}.pem;
|
||||
{% else %}
|
||||
ssl_certificate /etc/ssl/csr/{{ instance_name }}-fullchain.crt;
|
||||
ssl_certificate_key /etc/ssl/private/{{ instance_name }}.pem;
|
||||
ssl_certificate /etc/ssl/csr/{{ domains[0] }}-fullchain.crt;
|
||||
ssl_certificate_key /etc/ssl/private/{{ domains[0] }}.pem;
|
||||
{% endif %}
|
||||
|
||||
add_header X-XSS-Protection "0";
|
||||
|
Loading…
x
Reference in New Issue
Block a user