forked from liu5269/zcode2api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
33 lines (27 loc) · 1.63 KB
/
Copy path.env.example
File metadata and controls
33 lines (27 loc) · 1.63 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
# ── 服务 ──────────────────────────────────────────
ZCODE_PORT=3000
ZCODE_HOST=0.0.0.0
# ── 鉴权 ──────────────────────────────────────────
# 后台管理密码(首次启动写入 data/accounts.db,之后以数据库为准)
ZCODE_ADMIN_KEY=zcode
# ── 数据目录(账号保存在本目录下的 SQLite)────────
ZCODE_DATA_DIR=./data
# ── 用量监控 ──────────────────────────────────────
# 后台自动刷新各账号额度的间隔(秒),0 关闭
ZCODE_QUOTA_REFRESH_INTERVAL=60
# 限流冷却时长(秒)
ZCODE_COOLING_SECONDS=300
# ── 无痕验证求解(无浏览器:Node + jsdom)──────────
# Node 可执行文件(默认走 PATH 中的 node)
# ZCODE_NODE_PATH=node
# 单次求解超时(秒)与失败重试次数
# ZCODE_CAPTCHA_TIMEOUT=40
# ZCODE_CAPTCHA_RETRIES=4
# ── 验证码缓存 ────────────────────────────────────
# CAPTCHA_CACHE_TTL=45000
# CAPTCHA_CONFIG_CACHE_TTL=600000
# ── 上游端点(一般无需修改)───────────────────────
# ZAI_UPSTREAM_URL=https://zcode.z.ai/api/v1/zcode-plan/anthropic/v1/messages
# ZAI_FALLBACK_URL=https://api.z.ai/api/anthropic/v1/messages
# BIGMODEL_UPSTREAM_URL=https://open.bigmodel.cn/api/anthropic/v1/messages
# UPSTREAM_USER_AGENT=ZCode/3.0.1