chore: initial commit - CloudSearch v0.0.2

This commit is contained in:
2026-05-15 05:50:50 +08:00
commit d83225d736
102 changed files with 37926 additions and 0 deletions

51
.env.example Executable file
View File

@@ -0,0 +1,51 @@
# ============================================================
# CloudSearch 环境变量配置示例 (v2.1 优化版)
# 复制此文件为 .env 并修改对应值
# ============================================================
# --- 必需:管理员账号(请务必修改默认密码)---
ADMIN_USERNAME=admin
ADMIN_PASSWORD=change-me-to-a-strong-password
# --- 必需JWT 密钥(使用随机值,勿用默认值)---
# 生成命令: openssl rand -hex 32
JWT_SECRET=change-me-to-a-random-64-char-hex-string
# --- 推荐Cookie 加密密钥(保护网盘凭证)---
# 生成命令: openssl rand -hex 32
# 不设置则每次重启生成临时密钥(旧数据不可解密)
COOKIE_ENCRYPTION_KEY=change-me-to-a-random-key
# --- CORS 访问控制(生产环境必须设置真实域名)---
# 示例: CORS_ORIGIN=https://search.example.com
CORS_ORIGIN=https://your-production-domain.com
# --- Redis 连接(可选,无 Redis 时自动降级)---
REDIS_URL=redis://redis:6379
# --- PanSou 搜索引擎地址(容器内无需修改)---
PANSOU_URL=http://pansou:80
PANSOU_AUTH_TOKEN=
# --- 视频解析服务地址(容器内无需修改)---
VIDEO_PARSER_URL=http://video-parser:3001
# --- 链接验证配置 ---
VALIDATION_CONCURRENCY=10
VALIDATION_TIMEOUT_MS=5000
VALIDATION_CACHE_TTL_VALID=600
VALIDATION_CACHE_TTL_INVALID=1800
# --- 日志级别 (debug|info|warn|error) ---
LOG_LEVEL=info
# --- 可选TMDB API Token用于影视元数据---
# 注册: https://www.themoviedb.org/settings/api
# TMDB_API_TOKEN=
# --- 可选:代理设置 ---
# HTTP_PROXY=http://proxy:8080
# HTTPS_PROXY=http://proxy:8080
# --- 站点访问地址(用于 CORS 和 SEO---
SITE_URL=https://your-production-domain.com