mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-05-21 00:57:43 +08:00
Import additional secrets via file uri (#25408)
This commit is contained in:
@ -53,6 +53,8 @@ func loadLFSFrom(rootCfg ConfigProvider) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
LFS.JWTSecretBase64 = loadSecret(rootCfg.Section("lfs"), "LFS_JWT_SECRET_URI", "LFS_JWT_SECRET")
|
||||
|
||||
LFS.JWTSecretBytes = make([]byte, 32)
|
||||
n, err := base64.RawURLEncoding.Decode(LFS.JWTSecretBytes, []byte(LFS.JWTSecretBase64))
|
||||
|
||||
|
Reference in New Issue
Block a user