grafana.ini.j2 54 lignes · 1230 octets
# {{ ansible_managed }}
# Grafana derrière nginx (https://{{ oiam_services.supervision }}/), sans accès anonyme ni appel sortant.
[paths]
data = /var/lib/grafana
logs = /var/log/grafana
plugins = /var/lib/grafana/plugins
provisioning = /etc/grafana/provisioning

[server]
protocol = http
http_addr = {{ oiam_grafana_ecoute.split(':')[0] }}
http_port = {{ oiam_grafana_ecoute.split(':')[1] }}
domain = {{ oiam_services.supervision }}
root_url = https://{{ oiam_services.supervision }}/
enable_gzip = true

[security]
admin_user = admin
admin_password = {{ oiam_grafana_admin_mot_de_passe }}
cookie_secure = true
cookie_samesite = lax
disable_gravatar = true
strict_transport_security = true

[users]
allow_sign_up = false
allow_org_create = false
default_theme = light
default_language = {{ oiam_langue }}-{{ oiam_langue | upper }}

[auth]
disable_login_form = false

[auth.anonymous]
enabled = false

[analytics]
reporting_enabled = false
check_for_updates = false
check_for_plugin_updates = false
feedback_links_enabled = false

[news]
news_feed_enabled = false

[dashboards]
default_home_dashboard_path = /var/lib/grafana/dashboards/open-iam/annuaire.json

[unified_alerting]
enabled = true

[log]
mode = console
level = warn