From 9d0772e50b3482fdb42162c86d78d2c90074e26e Mon Sep 17 00:00:00 2001 From: Ivan Lopez Date: Sat, 26 Nov 2016 17:13:56 +0100 Subject: [PATCH] support mysql session --- grafana/files/grafana.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/grafana/files/grafana.ini b/grafana/files/grafana.ini index 9ae09b9..5eda89d 100644 --- a/grafana/files/grafana.ini +++ b/grafana/files/grafana.ini @@ -85,6 +85,10 @@ provider = {{ server.session.engine }} provider_config = addr={{ server.session.get('host', '127.0.0.1') }}:{{ server.session.get('port', 6379) }},db={{ server.session.get('db', 'grafana') }} {%- endif %} +{%- if server.session.engine == 'mysql' %} +provider_config = {{ server.session.get('user', 'grafana') }}:{{ server.session.get('password', 'grafana') }}@tcp({{ server.session.get('host', '127.0.0.1') }}:{{ server.session.get('port', 3306) }})/{{ server.session.get('db', 'grafana') }} +{%- endif %} + # Session cookie name ;cookie_name = grafana_sess