~jacekn/charms/trusty/grafana/layer-grafana

« back to all changes in this revision

Viewing changes to templates/grafana.ini.j2

  • Committer: Tim Kuhlman
  • Date: 2016-05-06 20:42:51 UTC
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: timothy.kuhlman@canonical.com-20160506204251-ij2lj7aa21hswcu5
Added option for anonymous users

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
#################################### Anonymous Auth ##########################
125
125
[auth.anonymous]
126
126
# enable anonymous access
 
127
{% if anonymous -%}
 
128
enabled = true
 
129
 
 
130
# specify role for unauthenticated users
 
131
org_role = {{ anonymous_role }}
 
132
{% else -%}
127
133
;enabled = false
128
134
 
 
135
# specify role for unauthenticated users
 
136
;org_role = Viewer
 
137
{% endif -%}
 
138
 
129
139
# specify organization name that should be used for unauthenticated users
130
140
;org_name = Main Org.
131
141
 
132
 
# specify role for unauthenticated users
133
 
;org_role = Viewer
134
 
 
135
142
#################################### Github Auth ##########################
136
143
[auth.github]
137
144
;enabled = false