sessionSecretLookup syntax

This commit is contained in:
Cameron 2023-07-08 15:44:52 -07:00
parent da88da8560
commit eae490e471

View file

@ -100,7 +100,7 @@ func init() {
}
// check empty sessionSecret env var
if util.LookupEnvOrString("SESSION_SECRET", flagSessionSecret) != "" {
if sessionSecretLookup != "" {
flag.StringVar(&flagSessionSecret, "session-secret", sessionSecretLookup, "The key used to encrypt session cookies.")
} else {
flag.StringVar(&flagSessionSecret, "session-secret", util.LookupEnvOrFile("SESSION_SECRET_FILE", flagSessionSecret), "File containing the key used to encrypt session cookies.")