forked from forgejo/forgejo
Use data path instead of config path (#16227)
This commit is contained in:
parent
be81dc8b20
commit
31f6b95dfa
3 changed files with 12 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue