muzihuaner 在 哪吒面板Gitee OAuth 接入 中发帖
进入 https://gitee.com/oauth/applications,点右侧 创建应用 创建新的 OAuth 2.0 应用,填写以下内容:
应用名称:你的应用名称,例如ServerStatus
上传LOGO:你的应用图标
应用主页:你的哪吒面板地址,例如https://nezha.example.com
回调地址:哪吒 Callback URL,比如 https://nezha.example.com/api/v1/oauth2/callback;
权限:这里只需要 user_info。
其它的默认即可
创建之后会跳转到我的应用界面,点击应用详情保存下 Client ID和 Client Secret;
填写哪吒 OAuth 2.0 配置,保存后重启面板:
oauth2:
Gitee:
clientid: "a-unique-id"
client...