Add a new TLS flavor named 'mail'
This commit is contained in:
@@ -34,10 +34,12 @@ http {
|
||||
ssl_session_cache shared:SSLHTTP:50m;
|
||||
add_header Strict-Transport-Security max-age=15768000;
|
||||
|
||||
{% if not TLS_FLAVOR == "mail" %}
|
||||
if ($scheme = http) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
# In any case, enable the proxy for certbot if the flavor is letsencrypt
|
||||
{% if TLS_FLAVOR == 'letsencrypt' %}
|
||||
|
||||
Reference in New Issue
Block a user