|
@@ -42,6 +42,22 @@ ssl_mode = disable
|
|
|
; For "sqlite3" only
|
|
; For "sqlite3" only
|
|
|
path = /opt/grafana/data/grafana.db
|
|
path = /opt/grafana/data/grafana.db
|
|
|
|
|
|
|
|
|
|
+[session]
|
|
|
|
|
+; Either "memory", "file", "redis", "mysql", default is "memory"
|
|
|
|
|
+provider = file
|
|
|
|
|
+; Provider config options
|
|
|
|
|
+; memory: not have any config yet
|
|
|
|
|
+; file: session file path, e.g. `data/sessions`
|
|
|
|
|
+; redis: config like redis server addr, poolSize, password, e.g. `127.0.0.1:6379,100,grafana`
|
|
|
|
|
+; mysql: go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1)/database_name`
|
|
|
|
|
+provider_config = /opt/grafana/data/sessions
|
|
|
|
|
+; Session cookie name
|
|
|
|
|
+cookie_name = grafana_sess
|
|
|
|
|
+; If you use session in https only, default is false
|
|
|
|
|
+cookie_secure = false
|
|
|
|
|
+; Session life time, default is 86400
|
|
|
|
|
+session_life_time = 86400
|
|
|
|
|
+
|
|
|
[security]
|
|
[security]
|
|
|
; default admin user, created on startup
|
|
; default admin user, created on startup
|
|
|
admin_user = admin
|
|
admin_user = admin
|