feat: Initial commit of PDF Tools project
This commit is contained in:
39
server/.env.example
Normal file
39
server/.env.example
Normal file
@@ -0,0 +1,39 @@
|
||||
# 服务器配置
|
||||
PORT=3001
|
||||
NODE_ENV=development
|
||||
|
||||
# 客户端URL
|
||||
CLIENT_URL=http://localhost:3000
|
||||
|
||||
# 数据库配置
|
||||
MONGODB_URI=mongodb://localhost:27017/pdf-tools
|
||||
REDIS_URL=redis://localhost:6379
|
||||
|
||||
# JWT密钥
|
||||
JWT_SECRET=your-super-secret-jwt-key-change-in-production
|
||||
JWT_EXPIRES_IN=24h
|
||||
|
||||
# 文件存储配置
|
||||
UPLOAD_DIR=./uploads
|
||||
MAX_FILE_SIZE=50MB
|
||||
ALLOWED_FILE_TYPES=pdf,doc,docx,txt,html
|
||||
|
||||
# 转换引擎配置
|
||||
CONVERSION_TIMEOUT=300000
|
||||
MAX_CONCURRENT_CONVERSIONS=5
|
||||
|
||||
# 缓存配置
|
||||
CACHE_TTL=3600
|
||||
REDIS_PREFIX=pdf-tools:
|
||||
|
||||
# 邮件配置(可选)
|
||||
SMTP_HOST=
|
||||
SMTP_PORT=587
|
||||
SMTP_USER=
|
||||
SMTP_PASS=
|
||||
|
||||
# 系统配置
|
||||
ENABLE_ANALYTICS=false
|
||||
ENABLE_RATE_LIMITING=true
|
||||
RATE_LIMIT_WINDOW=900000
|
||||
RATE_LIMIT_MAX=100
|
||||
Reference in New Issue
Block a user