forked from forgejo/forgejo
Import additional secrets via file uri (#25408)
This commit is contained in:
parent
478f33030e
commit
c0fc53e226
3 changed files with 5 additions and 1 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue