Add support for configuring allow_embedding for Grafana

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1626
development
Slavi Pantaleev 3 years ago
parent cfba9b2cf5
commit f0ab2ec506

@ -22,6 +22,10 @@ matrix_grafana_data_path: "{{ matrix_grafana_base_path }}/data"
# Allow viewing Grafana without logging in # Allow viewing Grafana without logging in
matrix_grafana_anonymous_access: false matrix_grafana_anonymous_access: false
# Allow `false`, sends a `X-Frame-Options: deny` HTTP header, which allows Grafana from being embeded in a frame.
# Read more here: https://grafana.com/docs/grafana/latest/administration/configuration/#allow_embedding
matrix_grafana_allow_embedding: false
# specify organization name that should be used for unauthenticated users # specify organization name that should be used for unauthenticated users
# if you change this in the Grafana admin panel, this needs to be updated # if you change this in the Grafana admin panel, this needs to be updated
# to match to keep anonymous logins working # to match to keep anonymous logins working

@ -16,6 +16,8 @@ content_security_policy = "{{ matrix_grafana_content_security_policy }}"
content_security_policy_template = """{{ matrix_grafana_content_security_policy_template }}""" content_security_policy_template = """{{ matrix_grafana_content_security_policy_template }}"""
{% endif %} {% endif %}
allow_embedding = {{ matrix_grafana_allow_embedding }}
[auth.anonymous] [auth.anonymous]
# enable anonymous access # enable anonymous access
enabled = {{ matrix_grafana_anonymous_access }} enabled = {{ matrix_grafana_anonymous_access }}

Loading…
Cancel
Save