aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2021-06-23 16:56:25 +0200
committerGitHub <noreply@github.com>2021-06-23 16:56:25 +0200
commit31f6b95dfa17458a86119fc6ae546eb7dd47e2f4 (patch)
tree0d4241ec02b4c7fe989fea66fb3e4984df4bfa9e /modules
parentbe81dc8b20b86c87031cd1d2d7c9a2fe82f52ba8 (diff)
downloadgitea-31f6b95dfa17458a86119fc6ae546eb7dd47e2f4.tar.gz
gitea-31f6b95dfa17458a86119fc6ae546eb7dd47e2f4.zip
Use data path instead of config path (#16227)
Diffstat (limited to 'modules')
-rw-r--r--modules/setting/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index f648179155..020101430d 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -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")