{% if certificate and certificate_id > 0 -%} {% if ssl_forced == 1 or ssl_forced == true %} # Force SSL {% if trust_forwarded_proto == true %} set $trust_forwarded_proto "T"; {% else %} set $trust_forwarded_proto "F"; {% endif %} include conf.d/include/force-ssl.conf; {% endif %} {% endif %}