添加 .env.example
This commit is contained in:
32
.env.example
Normal file
32
.env.example
Normal file
@@ -0,0 +1,32 @@
|
||||
# .env.example
|
||||
# 复制此文件为 .env 并修改配置
|
||||
|
||||
# ===== 认证配置 =====
|
||||
AUTH_USERNAME=admin
|
||||
AUTH_PASSWORD=your_secure_password_here_change_this
|
||||
SESSION_SECRET=generate_random_64_char_string_here
|
||||
SESSION_TIMEOUT=30m
|
||||
|
||||
# ===== 安全配置 =====
|
||||
RATE_LIMIT_REQUESTS=100
|
||||
RATE_LIMIT_WINDOW=1m
|
||||
MAX_RESPONSE_SIZE=52428800
|
||||
|
||||
# ===== 代理配置 =====
|
||||
ALLOWED_SCHEMES=http,https
|
||||
USER_AGENT=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
|
||||
|
||||
# ===== 黑名单配置 =====
|
||||
# 域名黑名单(支持通配符 *.local)
|
||||
BLOCKED_DOMAINS=localhost,127.0.0.1,0.0.0.0,*.local,internal,metadata.google.internal,169.254.169.254
|
||||
|
||||
# CIDR 黑名单(私有网络)
|
||||
BLOCKED_CIDRS=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,169.254.0.0/16,::1/128,fc00::/7,fe80::/10,100.64.0.0/10
|
||||
|
||||
# ===== 缓存配置 =====
|
||||
CACHE_ENABLED=true
|
||||
CACHE_MAX_SIZE=104857600
|
||||
CACHE_TTL=1h
|
||||
|
||||
# ===== 服务器配置 =====
|
||||
PORT=8080
|
||||
Reference in New Issue
Block a user