新增功能: - 集成 Cloudflare WARP socks5 代理服务 - 通过环境变量 USE_PROXY 控制代理开关 - 支持自定义 HTTP/HTTPS/SOCKS5 代理服务器 - 使用 docker compose profile 管理 proxy 服务 配置方式: - USE_PROXY=true 启用代理 - ALL_PROXY/HTTP_PROXY/HTTPS_PROXY 自定义代理 - docker compose --profile proxy up 启动 warp 服务 文件变更: - docker-compose.yaml: 添加 warp-proxy 服务 - playwright-auth.ts: 添加代理配置逻辑 - example.env: 添加代理环境变量 - PROXY.md: 使用文档
32 lines
808 B
Bash
32 lines
808 B
Bash
API_USERNAME=
|
|
API_PASSWORD=
|
|
PORT=3000
|
|
FIXED_STAFF_ACTIVITY_ID=7095
|
|
ALLOWED_ORIGINS=*
|
|
S3_ENDPOINT=
|
|
S3_PUBLIC_URL=
|
|
S3_BUCKET_NAME=
|
|
S3_ACCESS_KEY_ID=
|
|
S3_SECRET_ACCESS_KEY=
|
|
S3_REGION=
|
|
S3_PUBLIC_URL_PREFIX=files
|
|
REDIS_URL=redis://:dsas-cca@redis:6379
|
|
MIN_ACTIVITY_ID_SCAN=3000
|
|
MAX_ACTIVITY_ID_SCAN=8000
|
|
CONCURRENT_API_CALLS=16
|
|
STAFF_UPDATE_INTERVAL_MINS=360
|
|
CLUB_UPDATE_INTERVAL_MINS=360
|
|
LOG_LEVEL=info # Example: 'debug', 'info', 'warn', 'error'
|
|
|
|
# Proxy Configuration (Optional)
|
|
# Set USE_PROXY=true to enable proxy for Playwright requests
|
|
USE_PROXY=false
|
|
# Custom proxy server (default: socks5://warp-proxy:9091 when using warp-proxy service)
|
|
# Examples:
|
|
# HTTP: http://proxy.example.com:8080
|
|
# SOCKS5: socks5://proxy.example.com:1080
|
|
# Warp: socks5://warp-proxy:9091
|
|
ALL_PROXY=
|
|
HTTP_PROXY=
|
|
HTTPS_PROXY=
|