Add support for configuring allow_embedding for Grafana

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1626
master
Slavi Pantaleev 2 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
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
# if you change this in the Grafana admin panel, this needs to be updated
# 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 }}"""
{% endif %}
allow_embedding = {{ matrix_grafana_allow_embedding }}
[auth.anonymous]
# enable anonymous access
enabled = {{ matrix_grafana_anonymous_access }}

Loading…
Cancel
Save