39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
{% if STRICT_TRANSPORT_SECURITY != "" and (AUTO_LETS_ENCRYPT == "yes" or USE_CUSTOM_HTTPS == "yes" or GENERATE_SELF_SIGNED_SSL == "yes") +%}
|
|
more_set_headers "Strict-Transport-Security: {{ STRICT_TRANSPORT_SECURITY }}";
|
|
{% endif +%}
|
|
|
|
{% if COOKIE_FLAGS != "" +%}
|
|
{% if COOKIE_AUTO_SECURE_FLAG == "yes" and (AUTO_LETS_ENCRYPT == "yes" or USE_CUSTOM_HTTPS == "yes" or GENERATE_SELF_SIGNED_SSL == "yes") +%}
|
|
set_cookie_flag {{ COOKIE_FLAGS }} secure;
|
|
{% else +%}
|
|
set_cookie_flag {{ COOKIE_FLAGS }};
|
|
{% endif +%}
|
|
{% endif +%}
|
|
|
|
{% if CONTENT_SECURITY_POLICY != "" +%}
|
|
more_set_headers "Content-Security-Policy: {{ CONTENT_SECURITY_POLICY }}";
|
|
{% endif +%}
|
|
|
|
{% if REFERRER_POLICY != "" +%}
|
|
more_set_headers "Referrer-Policy: {{ REFERRER_POLICY }}";
|
|
{% endif +%}
|
|
|
|
{% if PERMISSIONS_POLICY != "" +%}
|
|
more_set_headers "Permissions-Policy: {{ PERMISSIONS_POLICY }}";
|
|
{% endif +%}
|
|
|
|
{% if FEATURE_POLICY != "" +%}
|
|
more_set_headers "Feature-Policy: {{ FEATURE_POLICY }}";
|
|
{% endif +%}
|
|
|
|
{% if X_FRAME_OPTIONS != "" +%}
|
|
more_set_headers "X-Frame-Options: {{ X_FRAME_OPTIONS }}";
|
|
{% endif +%}
|
|
|
|
{% if X_CONTENT_TYPE_OPTIONS != "" +%}
|
|
more_set_headers "X-Content-Type-Options: {{ X_CONTENT_TYPE_OPTIONS }}";
|
|
{% endif +%}
|
|
|
|
{% if X_XSS_PROTECTION != "" +%}
|
|
more_set_headers "X-XSS-Protection: {{ X_XSS_PROTECTION }}";
|
|
{% endif +%} |