Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
e4924795
Unverified
Commit
e4924795
authored
Jan 25, 2019
by
Marcus Efraimsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change default rotate_token_minutes to 10 minutes
parent
42fa41e7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
conf/defaults.ini
+2
-2
conf/sample.ini
+2
-2
pkg/setting/setting.go
+1
-1
No files found.
conf/defaults.ini
View file @
e4924795
...
...
@@ -116,8 +116,8 @@ cookie_name = grafana_session
# How many days an session can be unused before we inactivate it
login_remember_days
=
7
# How often should the login token be rotated. default to '
3
0m'
rotate_token_minutes
=
3
0
# How often should the login token be rotated. default to '
1
0m'
rotate_token_minutes
=
1
0
# How long should Grafana keep expired tokens before deleting them
delete_expired_token_after_days
=
30
...
...
conf/sample.ini
View file @
e4924795
...
...
@@ -112,8 +112,8 @@ log_queries =
# How many days an session can be unused before we inactivate it
;login_remember_days = 7
# How often should the login token be rotated. default to '
3
0'
;rotate_token_minutes =
3
0
# How often should the login token be rotated. default to '
1
0'
;rotate_token_minutes =
1
0
# How long should Grafana keep expired tokens before deleting them
;delete_expired_token_after_days = 30
...
...
pkg/setting/setting.go
View file @
e4924795
...
...
@@ -556,7 +556,7 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error {
cfg
.
LoginCookieName
=
login
.
Key
(
"cookie_name"
)
.
MustString
(
"grafana_session"
)
cfg
.
LoginCookieMaxDays
=
login
.
Key
(
"login_remember_days"
)
.
MustInt
(
7
)
cfg
.
LoginDeleteExpiredTokensAfterDays
=
login
.
Key
(
"delete_expired_token_after_days"
)
.
MustInt
(
30
)
cfg
.
LoginCookieRotation
=
login
.
Key
(
"rotate_token_minutes"
)
.
MustInt
(
3
0
)
cfg
.
LoginCookieRotation
=
login
.
Key
(
"rotate_token_minutes"
)
.
MustInt
(
1
0
)
if
cfg
.
LoginCookieRotation
<
2
{
cfg
.
LoginCookieRotation
=
2
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment