Update roles/matrix-grafana/templates/grafana.ini.j2

Co-authored-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
sakkiii 2021-05-06 12:38:40 +05:30 committed by GitHub
parent 37de7fc96a
commit 0d5fe2d9f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 %}