1
0
Fork 0
mirror of synced 2024-11-17 22:55:35 -05:00

support mysql session

This commit is contained in:
Ivan Lopez 2016-11-26 17:13:56 +01:00
parent a927d2162c
commit 9d0772e50b

View file

@ -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