-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.env.example
More file actions
81 lines (60 loc) · 3.15 KB
/
.env.example
File metadata and controls
81 lines (60 loc) · 3.15 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
77
78
79
80
81
# ============================================================
# DVCode Proxy 配置文件 / DVCode Proxy Configuration
# ============================================================
# 说明 / Instructions:
# - 将此文件复制为 .env / Copy this file as .env
# - 根据需要填充配置值 / Fill in the values as needed
# - 敏感信息不要提交到 Git / Do NOT commit sensitive info to Git
# =============== 服务器配置 / Server Configuration ===============
# 运行环境 / Environment: development, production, test
NODE_ENV=production
# 服务器端口 / Server port
PORT=3001
# 服务器绑定地址 / Server host address (0.0.0.0 = all interfaces)
HOST=0.0.0.0
# 跨域设置 / CORS origin (use * for all or specify domains)
CORS_ORIGIN=*
# 请求超时时间(毫秒) / Request timeout in milliseconds
REQUEST_TIMEOUT=30000
# 最大请求体大小 / Maximum request body size
MAX_REQUEST_SIZE=50mb
# 调试模式 / Debug mode (set to true to see detailed logs)
DEBUG=false
# =============== Vertex AI 配置 / Vertex AI Configuration ===============
# 是否启用 Vertex AI / Enable Vertex AI provider
# 需要配置凭证文件才能启用 / Requires credentials file to enable
VERTEX_ENABLED=true
# Vertex AI 默认地区 / Default Vertex AI location
# 常见值: global, us-central1, europe-west1 / Common values: global, us-central1, europe-west1
VERTEX_DEFAULT_LOCATION=global
# Vertex AI 凭证文件路径(逗号分隔) / Vertex AI credentials path(s) - comma-separated
# 相对路径 (相对于项目根目录) / Relative paths (relative to project root):
# - 单个凭证 / Single: ./key/cd-1.json
# - 多个凭证 / Multiple: ./key/cd-1.json,./key/cd-2.json
# (系统会按顺序尝试,前一个失败自动fallback到下一个 / Falls back automatically if one fails)
#
# 绝对路径 / Absolute paths:
# - /absolute/path/to/cred1.json,/absolute/path/to/cred2.json
#
# 获取凭证文件方法 / How to get credentials:
# 1. 访问 Google Cloud Console / Visit https://console.cloud.google.com
# 2. 创建服务账户 / Create a Service Account
# 3. 生成 JSON 密钥文件 / Generate JSON key file
# 4. 放在项目的 key/ 目录下 / Place in project's key/ directory
VERTEX_CREDENTIALS_PATHS=./key/cd-1.json
# Google Cloud 项目配置(可选) / Google Cloud Project Configuration (optional)
# 若需要覆盖凭证文件中的项目ID / To override project ID from credentials file:
# GOOGLE_CLOUD_PROJECT=your-project-id
# =============== OpenRouter 配置 / OpenRouter Configuration ===============
# 是否启用 OpenRouter / Enable OpenRouter provider
OPENROUTER_ENABLED=true
# OpenRouter API 密钥 / OpenRouter API Key
# 获取地址 / Get your key from: https://openrouter.ai
# 格式 / Format: sk-or-... (开头为 sk-or-)
OPENROUTER_API_KEY=sk-or-your-key-here
# OpenRouter 自定义基础 URL(可选) / Custom OpenRouter base URL (optional)
# 默认值 / Default: https://openrouter.ai/api/v1
OPENROUTER_BASE_URL=https://openrouter.ai/api/v1
# OpenRouter 默认模型(可选) / Default model for OpenRouter (optional)
# 支持的模型列表 / See available models at: https://openrouter.ai/docs/models
OPENROUTER_DEFAULT_MODEL=openai/gpt-4