|
|
@ -3,13 +3,19 @@
|
|
|
|
{% macro render_vhost_directives() %}
|
|
|
|
{% macro render_vhost_directives() %}
|
|
|
|
gzip on;
|
|
|
|
gzip on;
|
|
|
|
gzip_types text/plain application/json application/javascript text/css image/x-icon font/ttf image/gif;
|
|
|
|
gzip_types text/plain application/json application/javascript text/css image/x-icon font/ttf image/gif;
|
|
|
|
|
|
|
|
|
|
|
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
|
|
|
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
|
|
|
|
# duplicate X-Content-Type-Options & X-Frame-Options header
|
|
|
|
# duplicate X-Content-Type-Options & X-Frame-Options header
|
|
|
|
# Enabled by grafana by default
|
|
|
|
# Enabled by grafana by default
|
|
|
|
# add_header X-Content-Type-Options nosniff;
|
|
|
|
# add_header X-Content-Type-Options nosniff;
|
|
|
|
# add_header X-Frame-Options SAMEORIGIN;
|
|
|
|
# add_header X-Frame-Options SAMEORIGIN;
|
|
|
|
add_header Referrer-Policy "strict-origin-when-cross-origin";
|
|
|
|
add_header Referrer-Policy "strict-origin-when-cross-origin";
|
|
|
|
|
|
|
|
{% if matrix_nginx_proxy_floc_optout_enabled %}
|
|
|
|
|
|
|
|
add_header Permissions-Policy interest-cohort=() always;
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
proxy_cookie_path / "/; HTTPOnly; Secure";
|
|
|
|
proxy_cookie_path / "/; HTTPOnly; Secure";
|
|
|
|
|
|
|
|
|
|
|
|
{% for configuration_block in matrix_nginx_proxy_proxy_grafana_additional_server_configuration_blocks %}
|
|
|
|
{% for configuration_block in matrix_nginx_proxy_proxy_grafana_additional_server_configuration_blocks %}
|
|
|
|
{{- configuration_block }}
|
|
|
|
{{- configuration_block }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|