feat(env): add SSRF whitelist configuration to .env.example and docker-compose.yml

This commit is contained in:
wizardchen
2026-03-20 15:08:50 +08:00
committed by lyingbug
parent d7fd3b5eee
commit 3a8bd36d8a
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -104,6 +104,10 @@ TENANT_AES_KEY=weknorarag-api-key-secret-secret
# AES-256 密钥,用于数据库中 API Key 等敏感字段的落盘加密(必须为32字节)
SYSTEM_AES_KEY=weknora-system-aes-key-32bytes!!
# SSRF 校验白名单(可选)。逗号分隔;每条可为:精确域名(api.internal)、通配域名(*.example.com)、
# IP(203.0.113.5)或 CIDR(10.0.0.0/8)。列入者会在 URL 校验等地方绕过常规 SSRF 规则,生产环境请谨慎配置。
# SSRF_WHITELIST=internal.service,*.corp.example,172.16.0.0/12
# 是否开启知识图谱构建和检索(构建阶段需调用大模型,耗时较长)
ENABLE_GRAPH_RAG=false