-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy path.env.example
More file actions
76 lines (58 loc) · 3.08 KB
/
Copy path.env.example
File metadata and controls
76 lines (58 loc) · 3.08 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
# VulnWatchdog 环境变量配置示例
# 复制此文件为 .env 并填入实际配置
# ============================================================================
# 通知配置
# ============================================================================
# 通知类型: feishu (飞书)
NOTIFY_TYPE=feishu
# Webhook URL (飞书机器人Webhook地址)
WEBHOOK_URL=https://open.feishu.cn/open-apis/bot/v2/hook/your-webhook-id
# ============================================================================
# GPT 配置
# ============================================================================
# GPT服务器地址
GPT_SERVER_URL=https://api.openai.com/v1/chat/completions
# GPT API密钥
GPT_API_KEY=your-api-key-here
# GPT模型 (默认: gemini-2.0-flash)
GPT_MODEL=gemini-2.0-flash
# Token限制 (字符数)
MAX_CVE_INFO_CHARS=1000
MAX_SEARCH_CHARS=2000
MAX_POC_CODE_CHARS=3000
MAX_PROMPT_CHARS=24000
# ============================================================================
# 搜索引擎配置
# ============================================================================
# 方式1: 多引擎配置 (推荐) - 用逗号分隔多个URL
# 支持自动故障转移、权重调整、健康监控
# 以下是从337个测试引擎中筛选的Top 10最快引擎 (响应时间1.15-1.31秒)
SEARXNG_URLS=http://49.234.42.194:8888/search,http://154.217.242.121:18080/search,http://154.217.242.164:18080/search,http://154.217.242.196:18080/search,http://154.217.242.137:18080/search
# 方式2: 单引擎配置 (已废弃,仅用于向后兼容)
# SEARXNG_URL=http://49.234.42.194:8888/search
# 更多引擎示例 (Top 10):
# SEARXNG_URLS=http://49.234.42.194:8888/search,http://154.217.242.121:18080/search,http://154.217.242.164:18080/search,http://154.217.242.196:18080/search,http://154.217.242.137:18080/search,http://154.217.242.179:18080/search,http://154.217.242.183:18080/search,http://154.217.242.152:18080/search,http://111.229.143.178:8080/search,http://47.113.226.244:18080/search
# 注意: 不配置环境变量时,系统会自动使用默认配置 (libs/default_search_engines.json)
# 默认配置已包含上述Top 10引擎,无需手动配置即可使用
# ============================================================================
# GitHub 配置
# ============================================================================
# GitHub Personal Access Token (推荐配置,提升API限制到5000次/小时)
#
# 使用优先级:
# 1. GH_TOKEN (用户手工配置) - 5000次/小时
# 2. GITHUB_TOKEN (GitHub Actions自动提供) - 1000次/小时
# 3. 未配置 (匿名访问) - 60次/小时
#
# 配置方法:
# 1. 访问 https://github.com/settings/tokens 生成 Personal Access Token
# 2. 权限选择: public_repo (读取公共仓库)
# 3. 将 token 填入下方 GH_TOKEN
GH_TOKEN=ghp_your_github_token_here
# Git仓库地址 (用于自动提交)
GIT_URL=https://github.com/your-username/your-repo.git
# ============================================================================
# 调试配置
# ============================================================================
# 调试模式 (true/false)
DEBUG=false