Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLASweb-backend-go
Commits
ebe9d230
Commit
ebe9d230
authored
Jan 25, 2021
by
Steffen Vogel
🎅🏼
Browse files
fix invalid time unit in time.parseDuration()
parent
8255382d
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
configuration/config.go
View file @
ebe9d230
...
...
@@ -60,7 +60,7 @@ func InitConfig() error {
s3NoSSL
=
flag
.
Bool
(
"s3-nossl"
,
false
,
"Use encrypted connections to the S3 API"
)
s3PathStyle
=
flag
.
Bool
(
"s3-pathstyle"
,
false
,
"Use path-style S3 API"
)
jwtSecret
=
flag
.
String
(
"jwt-secret"
,
"This should NOT be here!!@33$8&"
,
"The JSON Web Token secret"
)
jwtExpiresAfter
=
flag
.
String
(
"jwt-expires-after"
,
"1
w"
,
"The time after which the JSON Web Token expires"
)
jwtExpiresAfter
=
flag
.
String
(
"jwt-expires-after"
,
"1
68h"
/* 1 week */
,
"The time after which the JSON Web Token expires"
)
)
flag
.
Parse
()
...
...
Write
Preview
Supports
Markdown
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