-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy path.env.example
More file actions
27 lines (20 loc) · 1.47 KB
/
.env.example
File metadata and controls
27 lines (20 loc) · 1.47 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
# NewAPI 账号配置示例
# 复制此文件为 .env 并填入实际值(仅用于本地测试)
# ========== 单账号格式 ==========
NEWAPI_ACCOUNTS=https://your-domain.com#your_session_cookie
# ========== 多网站格式(逗号分隔)==========
# 支持多个不同的 NewAPI 站点
# NEWAPI_ACCOUNTS=https://site1.com#session1,https://site2.com#session2,https://site3.com#session3
# ========== JSON 格式(推荐)==========
# 支持多网站、用户ID、备注名称、更好的可读性
# NEWAPI_ACCOUNTS=[{"url":"https://api.example.com","session":"sess1","user_id":"123","name":"主力站"},{"url":"https://api2.example.com","session":"sess2","user_id":"456","name":"备用站"}]
# ========== 完整示例 ==========
# 替换下面的值为你自己的真实配置
# NEWAPI_ACCOUNTS=[{"url":"https://api.example.com","session":"MTc2NzQxMzYzM3xEWDhFQVFMX2dBQUJFQUVRQUFE...","user_id":"123","name":"主力站"},{"url":"https://api2.example.com","session":"QVFMXzJhYWJFRUFRQUFEX3dfLUFBQVlHYzNSeWFXNW5EQTBBQzI...","user_id":"456","name":"备用站"}]
# ========== 钉钉通知配置 ==========
# 签到完成后自动发送通知到钉钉群
# 钉钉机器人 Webhook URL(可选,配置后启用通知)
# 获取方式:钉钉群 -> 设置 -> 智能群助手 -> 添加机器人 -> 自定义机器人
# DINGTALK_WEBHOOK=https://oapi.dingtalk.com/robot/send?access_token=xxxxx
# 钉钉机器人签名密钥(可选,如果开启了加签安全设置)
# DINGTALK_SECRET=SECxxxxx