D3V-Server/backend/templates/_forced_ssl.conf

11 lines
320 B
Text
Raw Normal View History

2026-03-07 13:49:44 +00:00
{% 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 %}