Skip to content
Snippets Groups Projects
Commit 2a6f8a4f authored by Axel Prel's avatar Axel Prel
Browse files

auth: token_secret can be set as env variable

parent 99526703
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@
// TokenOptions holds options related to the JWT.
type TokenOptions struct {
Secret string `long:"token-secret" ini-name:"token-secret" description:"HMAC secret for signing/verifying JWT"`
Secret string `long:"token-secret" ini-name:"token-secret" env:"AUTH_TOKEN_SECRET" description:"HMAC secret for signing/verifying JWT"`
ExpirationOpt func(string) error `long:"token-expiration" ini-name:"token-expiration" required:"false" description:"Expiration time of the generated tokens" default:"5m"`
Expiration time.Duration `no-flag:"t"`
CookieDomain string `long:"cookie-domain" ini-name:"cookie-domain" description:"The domain used in cookies, must match the public-facing server host name"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment