Просмотр исходного кода

Add support for configuring allow_embedding for Grafana

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1626
pull/1630/head
Slavi Pantaleev 4 лет назад
Родитель
Сommit
f0ab2ec506
2 измененных файлов: 6 добавлений и 0 удалений
  1. +4
    -0
      roles/matrix-grafana/defaults/main.yml
  2. +2
    -0
      roles/matrix-grafana/templates/grafana.ini.j2

+ 4
- 0
roles/matrix-grafana/defaults/main.yml Просмотреть файл

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


+ 2
- 0
roles/matrix-grafana/templates/grafana.ini.j2 Просмотреть файл

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


Загрузка…
Отмена
Сохранить