接入 Gitee 登录,v0.4.11 之前的用户需要更新配置文件

This commit is contained in:
naiba
2021-03-02 23:08:40 +08:00
parent 8f7346141a
commit 01f99a8c2c
12 changed files with 105 additions and 106 deletions

View File

@@ -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
}