-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy path.env.example
More file actions
46 lines (39 loc) · 1.32 KB
/
.env.example
File metadata and controls
46 lines (39 loc) · 1.32 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
# ============================================
# OpenCode WebUI - 环境变量
# ============================================
# cp .env.example .env
# ---- LLM Provider API Keys(至少填一个)----
ANTHROPIC_API_KEY=
OPENAI_API_KEY=
GEMINI_API_KEY=
DEEPSEEK_API_KEY=
GROQ_API_KEY=
MISTRAL_API_KEY=
XAI_API_KEY=
# ---- 端口 ----
GATEWAY_PORT=6658
PREVIEW_PORT=6659
# ---- 预览域名(绑定独立域名解决前端资源路径问题)----
# 例如 preview.example.com,Nginx 将此域名转发到 PREVIEW_PORT
PREVIEW_DOMAIN=
# ---- 工作目录 ----
WORKSPACE=./workspace
# ---- 安全(公网部署务必设置)----
OPENCODE_SERVER_PASSWORD=
OPENCODE_SERVER_USERNAME=opencode
# ---- 路由服务(由 gateway 内置)----
PUBLIC_BASE_URL=
ROUTER_SCAN_INTERVAL=5
ROUTER_TOKEN_LENGTH=12
ROUTER_PORT_RANGE=3000-9999
ROUTER_EXCLUDE_PORTS=4096
# ---- Backend 工具链镜像/运行时源(可选)----
USE_CHINA_MIRROR=1
APT_MIRROR=http://mirrors.tuna.tsinghua.edu.cn/debian
APT_SECURITY_MIRROR=http://mirrors.tuna.tsinghua.edu.cn/debian-security
NPM_CONFIG_REGISTRY=https://registry.npmmirror.com
NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node
PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
PIP_TRUSTED_HOST=pypi.tuna.tsinghua.edu.cn
MISE_INSTALL_URL=https://mise.run
OPENCODE_INSTALL_URL=https://opencode.ai/install