nginx-proxy-manager/backend/templates/_hsts.conf
2024-10-20 19:48:53 +02:00

17 lines
435 B
Text

{%- if certificate and certificate_id > 0 %}
{%- if ssl_forced %}
{%- if hsts_enabled %}
more_clear_headers "Expect-CT";
include conf.d/include/hsts.conf;
{%- endif %}
{%- endif %}
{%- endif %}
{%- unless certificate and certificate_id > 0 %}
{%- unless ssl_forced %}
{%- unless hsts_enabled %}
more_clear_headers "Expect-CT";
more_clear_headers "Strict-Transport-Security";
{%- endunless %}
{%- endunless %}
{%- endunless %}