support mysql session
This commit is contained in:
parent
a927d2162c
commit
9d0772e50b
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue