测试OAuth2
This commit is contained in:
@@ -1,17 +1,26 @@
|
||||
# ============================================
|
||||
# Sveltia CMS 配置
|
||||
# Sveltia CMS 配置(Decap 兼容语法)
|
||||
# 后端:Gitea(OAuth2 隐式授权,浏览器直连 Gitea API)
|
||||
# ============================================
|
||||
|
||||
backend:
|
||||
name: github
|
||||
repo: lhth/testdecap
|
||||
branch: master
|
||||
name: gitea
|
||||
repo: admin/docusaurus
|
||||
branch: main
|
||||
base_url: http://115.190.192.69:3011
|
||||
auth_endpoint: /login/oauth/authorize
|
||||
auth_scope: read_user,write:repository
|
||||
# 在 Gitea「设置 → 应用 → 管理 OAuth2 应用程序」里创建应用,重定向 URI 填:
|
||||
# http://115.190.192.69:3000/admin/
|
||||
# http://localhost:3000/admin/ (本地调试,可多行添加)
|
||||
# Client ID 如下:
|
||||
client_id: 7d62ff16-bb6b-467e-b5ea-22e238a3d5f8
|
||||
|
||||
media_folder: static/img
|
||||
public_folder: /img
|
||||
|
||||
site_url: https://your-docusaurus-site.example.com
|
||||
display_url: https://your-docusaurus-site.example.com
|
||||
site_url: http://115.190.192.69:3000
|
||||
display_url: http://115.190.192.69:3000
|
||||
|
||||
logo:
|
||||
src: /img/code.ico
|
||||
|
||||
Reference in New Issue
Block a user