From 0da5635b9e8af6f4a2c850f7b3ca324c87ba53b8 Mon Sep 17 00:00:00 2001 From: Allen Zhong Date: Fri, 23 Jul 2021 16:40:14 +0800 Subject: [PATCH] cluster: distinguish cookie names of multiple grafana instances (#1491) --- embed/templates/config/grafana.ini.tpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/embed/templates/config/grafana.ini.tpl b/embed/templates/config/grafana.ini.tpl index 92bd7afc26..2ef671c257 100644 --- a/embed/templates/config/grafana.ini.tpl +++ b/embed/templates/config/grafana.ini.tpl @@ -171,6 +171,10 @@ admin_password = {{.Password}} # Default UI theme ("dark" or "light") ;default_theme = dark +############### Set Cookie Name for Multiple Instances ####################### +[auth] +login_cookie_name = grafana_session_{{ if .Domain }}{{.Domain}}_{{ end }}{{.Port}} + #################################### Anonymous Auth ########################## [auth.anonymous] {{- if .AnonymousEnable}}