fix problems
All checks were successful
Xiaoshiliu / build (push) Successful in 3m52s

This commit is contained in:
lychang
2025-10-04 21:19:09 +08:00
parent a43580dc73
commit 3efd4527fa

View File

@@ -8,19 +8,19 @@ JWT_EXPIRES_IN=7d
REFRESH_TOKEN_EXPIRES_IN=30d
# 数据库配置
DB_HOST=localhost
DB_USER=root
DB_HOST=192.168.1.100
DB_USER=xiaoshiliu_user
DB_PASSWORD=123456
DB_NAME=xiaoshiliu
DB_PORT=3306
DB_PORT=3307
# API配置
API_BASE_URL=http://localhost:3001
# 上传配置
UPLOAD_MAX_SIZE=50mb
UPLOAD_MAX_SIZE=350mb
# 图片上传策略 (local: 本地存储, imagehost: 第三方图床, r2: Cloudflare R2)
IMAGE_UPLOAD_STRATEGY=imagehost
IMAGE_UPLOAD_STRATEGY=local
# 视频上传策略 (local: 本地存储, r2: Cloudflare R2)
VIDEO_UPLOAD_STRATEGY=local
@@ -33,17 +33,17 @@ VIDEO_UPLOAD_DIR=uploads/videos
VIDEO_COVER_DIR=uploads/covers
# 第三方图床配置当IMAGE_UPLOAD_STRATEGY=imagehost时使用
IMAGEHOST_API_URL=https://api.xinyew.cn/api/jdtc
IMAGEHOST_TIMEOUT=60000
#IMAGEHOST_API_URL=https://api.xinyew.cn/api/jdtc
#IMAGEHOST_TIMEOUT=60000
# Cloudflare R2 配置当IMAGE_UPLOAD_STRATEGY=r2或VIDEO_UPLOAD_STRATEGY=r2时使用
# 请从 Cloudflare 控制台获取您自己的配置信息
R2_ACCESS_KEY_ID=your_r2_access_key_id_here
R2_SECRET_ACCESS_KEY=your_r2_secret_access_key_here
R2_ENDPOINT=https://your_account_id.r2.cloudflarestorage.com
R2_BUCKET_NAME=your_bucket_name_here
R2_ACCOUNT_ID=your_account_id_here
R2_REGION=auto
#R2_ACCESS_KEY_ID=your_r2_access_key_id_here
#R2_SECRET_ACCESS_KEY=your_r2_secret_access_key_here
#R2_ENDPOINT=https://your_account_id.r2.cloudflarestorage.com
#R2_BUCKET_NAME=your_bucket_name_here
#R2_ACCOUNT_ID=your_account_id_here
#R2_REGION=auto
# 可选:如果有自定义域名,可以设置 R2_PUBLIC_URL
# R2_PUBLIC_URL=https://your-custom-domain.com