1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-03 09:07:19 +00:00

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
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")