Skip to content

Commit 5bf26f7

Browse files
committed
fix: setting custom access token script env
1 parent 1b269dc commit 5bf26f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/env/env.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ func InitEnv() {
118118
}
119119
}
120120

121+
if envData.StringEnv[constants.EnvKeyCustomAccessTokenScript] == "" {
122+
envData.StringEnv[constants.EnvKeyCustomAccessTokenScript] = os.Getenv(constants.EnvKeyCustomAccessTokenScript)
123+
}
124+
121125
if envData.StringEnv[constants.EnvKeyJwtPrivateKey] == "" {
122126
envData.StringEnv[constants.EnvKeyJwtPrivateKey] = os.Getenv(constants.EnvKeyJwtPrivateKey)
123127
}

0 commit comments

Comments
 (0)