-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
76 lines (68 loc) · 1.96 KB
/
config.example.yaml
File metadata and controls
76 lines (68 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Cloudflare API 配置
cloudflare:
# API Token (需要 Zone.DNS 编辑权限)
apiToken: "your-cloudflare-api-token"
# 默认 Zone ID(兜底用,建议在 domains 列表中配置)
zoneId: "your-zone-id"
# DNSPod API 配置
dnspod:
# DNSPod 的 SecretId 和 SecretKey
secretId: "your-dnspod-secret-id"
secretKey: "your-dnspod-secret-key"
# 多域名配置(enabled: false 则不对外开放,但保留配置)
domains:
- domain: "example.com"
provider: "cloudflare"
zoneId: "your-zone-id"
enabled: true
# - domain: "example2.com"
# provider: "dnspod"
# enabled: false
# 站点设置
site:
# 服务端口
port: 3000
# 主域名 (用户将申请此域名下的子域名)
domain: "example.com"
# JWT 密钥 (请修改为随机字符串)
jwtSecret: "change-this-to-a-random-string"
# 站点名称
siteName: "域名分发站"
# 用户限制
limits:
# 每个用户最多可申请的域名数量
maxDomainsPerUser: 5
# 允许的记录类型
allowedRecordTypes:
- A
- AAAA
- CNAME
- TXT
- MX
- NS
# 管理员配置
admin:
# 管理员用户名
username: "admin"
# 管理员密码 (首次运行时会根据此密码创建管理员账号)
password: "admin123456"
# Linux.Do OAuth2 登录(可选)
oauth:
clientId: "your-linuxdo-client-id"
clientSecret: "your-linuxdo-client-secret"
redirectUri: "http://localhost:3000/api/oauth/callback"
authUrl: "https://connect.linux.do/oauth2/authorize"
tokenUrl: "https://connect.linux.do/oauth2/token"
userInfoUrl: "https://connect.linux.do/api/user"
# GitHub OAuth2 登录(可选)
github:
clientId: "your-github-client-id"
clientSecret: "your-github-client-secret"
redirectUri: "http://localhost:3000/api/github/callback"
# Linux.Do Credit 积分兑换(可选)
credit:
pid: "your-credit-pid"
key: "your-credit-key"
notifyUrl: "https://你的域名/api/credit/notify"
returnUrl: "https://你的域名/panel.html"
creditsPerQuota: 50