Update roles/matrix-grafana/templates/grafana.ini.j2
Co-authored-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
parent
37de7fc96a
commit
0d5fe2d9f7
@ -9,7 +9,7 @@ admin_password = """{{ matrix_grafana_default_admin_password }}"""
|
|||||||
content_security_policy = "{{ matrix_grafana_content_security_policy }}"
|
content_security_policy = "{{ matrix_grafana_content_security_policy }}"
|
||||||
|
|
||||||
# specify content security policy template to customized template
|
# specify content security policy template to customized template
|
||||||
{% if matrix_synapse_metrics_enabled %}
|
{% if matrix_grafana_content_security_policy_customized %}
|
||||||
content_security_policy_template = """script-src http: https: 'unsafe-inline' 'unsafe-eval' 'strict-dynamic' $NONCE;object-src 'none';font-src 'self';style-src 'self' 'unsafe-inline';img-src 'self' data:;base-uri 'self';connect-src 'self' grafana.com;manifest-src 'self';media-src 'none';form-action 'self';"""
|
content_security_policy_template = """script-src http: https: 'unsafe-inline' 'unsafe-eval' 'strict-dynamic' $NONCE;object-src 'none';font-src 'self';style-src 'self' 'unsafe-inline';img-src 'self' data:;base-uri 'self';connect-src 'self' grafana.com;manifest-src 'self';media-src 'none';form-action 'self';"""
|
||||||
{% else %}
|
{% else %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user