Commit e4924795 by Marcus Efraimsson

change default rotate_token_minutes to 10 minutes

parent 42fa41e7
...@@ -116,8 +116,8 @@ cookie_name = grafana_session ...@@ -116,8 +116,8 @@ cookie_name = grafana_session
# How many days an session can be unused before we inactivate it # How many days an session can be unused before we inactivate it
login_remember_days = 7 login_remember_days = 7
# How often should the login token be rotated. default to '30m' # How often should the login token be rotated. default to '10m'
rotate_token_minutes = 30 rotate_token_minutes = 10
# How long should Grafana keep expired tokens before deleting them # How long should Grafana keep expired tokens before deleting them
delete_expired_token_after_days = 30 delete_expired_token_after_days = 30
......
...@@ -112,8 +112,8 @@ log_queries = ...@@ -112,8 +112,8 @@ log_queries =
# How many days an session can be unused before we inactivate it # How many days an session can be unused before we inactivate it
;login_remember_days = 7 ;login_remember_days = 7
# How often should the login token be rotated. default to '30' # How often should the login token be rotated. default to '10'
;rotate_token_minutes = 30 ;rotate_token_minutes = 10
# How long should Grafana keep expired tokens before deleting them # How long should Grafana keep expired tokens before deleting them
;delete_expired_token_after_days = 30 ;delete_expired_token_after_days = 30
......
...@@ -556,7 +556,7 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error { ...@@ -556,7 +556,7 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error {
cfg.LoginCookieName = login.Key("cookie_name").MustString("grafana_session") cfg.LoginCookieName = login.Key("cookie_name").MustString("grafana_session")
cfg.LoginCookieMaxDays = login.Key("login_remember_days").MustInt(7) cfg.LoginCookieMaxDays = login.Key("login_remember_days").MustInt(7)
cfg.LoginDeleteExpiredTokensAfterDays = login.Key("delete_expired_token_after_days").MustInt(30) cfg.LoginDeleteExpiredTokensAfterDays = login.Key("delete_expired_token_after_days").MustInt(30)
cfg.LoginCookieRotation = login.Key("rotate_token_minutes").MustInt(30) cfg.LoginCookieRotation = login.Key("rotate_token_minutes").MustInt(10)
if cfg.LoginCookieRotation < 2 { if cfg.LoginCookieRotation < 2 {
cfg.LoginCookieRotation = 2 cfg.LoginCookieRotation = 2
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment