1
0
Fork 0
forked from forgejo/forgejo

Use data path instead of config path (#16227)

This commit is contained in:
KN4CK3R 2021-06-23 16:56:25 +02:00 committed by GitHub
parent be81dc8b20
commit 31f6b95dfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 3 deletions

View file

@ -805,7 +805,7 @@ func NewContext() {
}
if !filepath.IsAbs(OAuth2.JWTSigningPrivateKeyFile) {
OAuth2.JWTSigningPrivateKeyFile = filepath.Join(CustomPath, OAuth2.JWTSigningPrivateKeyFile)
OAuth2.JWTSigningPrivateKeyFile = filepath.Join(AppDataPath, OAuth2.JWTSigningPrivateKeyFile)
}
sec = Cfg.Section("admin")