mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
✨ 接入 Gitee 登录,v0.4.11 之前的用户需要更新配置文件
This commit is contained in:
1 parent
6dd7cd00af
commit
8062e346d5
12 files changed
+105
-106
No files matched your search
+8
-2
@@ -10,6 +10,11 @@ import (
|
||||
"gopkg.in/yaml.v2"
|
||||
)
|
||||
|
||||
const (
|
||||
ConfigTypeGitHub = "github"
|
||||
ConfigTypeGitee = "gitee"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
Debug bool
|
||||
Site struct {
|
||||
@@ -19,8 +24,9 @@ type Config struct {
|
||||
CustomCode string
|
||||
ViewPassword string // 前台查看密码
|
||||
}
|
||||
GitHub struct {
|
||||
Admin string // 管理员ID列表
|
||||
Oauth2 struct {
|
||||
Type string
|
||||
Admin string // 管理员用户名列表
|
||||
ClientID string
|
||||
ClientSecret string
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user