-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
40 lines (30 loc) · 993 Bytes
/
Copy path.env.example
File metadata and controls
40 lines (30 loc) · 993 Bytes
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
# GitHub Personal Access Token
# 获取方式:https://github.com/settings/tokens
# 权限:public_repo
# 限制:5000 次/小时(未认证仅 60 次/小时)
GITHUB_TOKEN=your_github_token_here
# 管理员令牌(保护设置页)
ADMIN_TOKEN=your_admin_token_here
# 代理配置(可选)
# 方式 1:使用单独的配置项
# PROXY_HOST=127.0.0.1
# PROXY_PORT=7890
# PROXY_PROTOCOL=http
# 方式 2:使用标准的 HTTP_PROXY 环境变量
# HTTP_PROXY=http://127.0.0.1:7890
# 禁用代理(如果不需要代理,设置为 true)
# NO_PROXY=true
# 安全配置
# 允许的 CORS 来源(逗号分隔)
ALLOWED_ORIGINS=http://localhost:5173,http://localhost:3000
# 速率限制配置
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# 服务器端口
PORT=3000
# Node 环境
NODE_ENV=development
# SQLite 数据库路径(默认在项目 data 目录下)
# DB_PATH=data/github_crawler.db
# Python 可执行文件(文档生成器)
# PYTHON_BIN=python3