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

Merge pull request #1067 from theCalcaholic/fix/set-grafana-root-url

Configure root_url in granafa.ini
pull/1068/head
Slavi Pantaleev 4 лет назад
committed by GitHub
Родитель
Сommit
f7e854c7cc
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
2 измененных файлов: 4 добавлений и 0 удалений
  1. +1
    -0
      docs/configuring-playbook-prometheus-grafana.md
  2. +3
    -0
      roles/matrix-grafana/templates/grafana.ini.j2

+ 1
- 0
docs/configuring-playbook-prometheus-grafana.md Просмотреть файл

@@ -56,6 +56,7 @@ Name | Description
`matrix_nginx_proxy_proxy_synapse_metrics`|Set this to `true` to make matrix-nginx-proxy expose the Synapse metrics at `https://matrix.DOMAIN/_synapse/metrics`
`matrix_nginx_proxy_proxy_synapse_metrics_basic_auth_enabled`|Set this to `true` to password-protect (using HTTP Basic Auth) `https://matrix.DOMAIN/_synapse/metrics` (the username is always `prometheus`, the password is defined in `matrix_nginx_proxy_proxy_synapse_metrics_basic_auth_key`)
`matrix_nginx_proxy_proxy_synapse_metrics_basic_auth_key`|Set this to a password to use for HTTP Basic Auth for protecting `https://matrix.DOMAIN/_synapse/metrics` (the username is always `prometheus` - it's not configurable)
`matrix_server_fqn_grafana`|Use this variable to override the domain at which the Grafana web user-interface is at (defaults to `stats.DOMAIN`).


## More information


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

@@ -1,3 +1,6 @@
[server]
root_url = "https://{{ matrix_server_fqn_grafana }}"

[security]
# default admin user, created on startup
admin_user = "{{ matrix_grafana_default_admin_user }}"


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