Verified Commit f11a6c59 authored by Levente Polyak's avatar Levente Polyak 🚀
Browse files

grafana: write conditional default values for easier vanilla config diff

parent 6f90b24e
......@@ -301,9 +301,11 @@ strict_transport_security_max_age_seconds = 86400
# The interval string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
;min_refresh_interval = 5s
{% if grafana_anonymous_access %}
# Path to the default home dashboard. If this value is empty, then Grafana uses StaticRootPath + "dashboards/home.json"
{% if grafana_anonymous_access %}
default_home_dashboard_path = /var/lib/grafana/public-dashboards/home.json
{% else %}
;default_home_dashboard_path =
{% endif %}
#################################### Users ###############################
......@@ -391,9 +393,7 @@ oauth_auto_login = true
#################################### Anonymous Auth ######################
[auth.anonymous]
# enable anonymous access
{% if grafana_anonymous_access %}
enabled = true
{% endif %}
enabled = {% if grafana_anonymous_access %}true{% else %}false{% endif %}
# specify organization name that should be used for unauthenticated users
;org_name = Main Org.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment