fenghuo/env.example

71 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ===========================================
# 存储配置 (@repo/storage)
# ===========================================
# 存储类型: local | s3
STORAGE_TYPE=local
# 上传文件过期时间毫秒0表示不过期
UPLOAD_EXPIRATION_MS=0
# ===========================================
# 本地存储配置 (当 STORAGE_TYPE=local 时)
# ===========================================
# 本地存储目录路径
UPLOAD_DIR=./uploads
# ===========================================
# S3 存储配置 (当 STORAGE_TYPE=s3 时)
# ===========================================
# S3 存储桶名称 (必需)
S3_BUCKET=
# S3 区域 (必需)
S3_REGION=us-east-1
# S3 访问密钥 ID (必需)
S3_ACCESS_KEY_ID=
# S3 访问密钥 (必需)
S3_SECRET_ACCESS_KEY=
# 自定义 S3 端点 (可选,用于 MinIO、阿里云 OSS 等)
S3_ENDPOINT=
# 是否强制使用路径样式 (可选)
S3_FORCE_PATH_STYLE=false
# 分片上传大小,单位字节 (可选,默认 8MB)
S3_PART_SIZE=8388608
# 最大并发上传数 (可选)
S3_MAX_CONCURRENT_UPLOADS=60
# ===========================================
# 数据库配置
# ===========================================
# 数据库连接字符串
DATABASE_URL="postgresql://username:password@localhost:5432/database"
# ===========================================
# Redis 配置
# ===========================================
# Redis 连接字符串
REDIS_URL="redis://localhost:6379"
# ===========================================
# 应用配置
# ===========================================
# 应用端口
PORT=3000
# 应用环境
NODE_ENV=development
# CORS 允许的源
CORS_ORIGIN=http://localhost:3001