Do not deny HTTP access upon TLS error when the flavor is mail

This commit is contained in:
kaiyou
2017-12-17 15:09:10 +01:00
parent bfc898c2d8
commit d0b8de72e4

View File

@@ -62,7 +62,7 @@ http {
{% endif %}
# If TLS is failing, prevent access to anything except certbot
{% if TLS_ERROR %}
{% if TLS_ERROR and not TLS_FLAVOR == "mail" %}
location / {
return 403;
}