chore: initialize tuhui repository
This commit is contained in:
22
backend/env.example
Normal file
22
backend/env.example
Normal file
@@ -0,0 +1,22 @@
|
||||
# 数据库配置
|
||||
DATABASE_URL=mysql+pymysql://aishej:aishej123@mysql:3306/aishej
|
||||
|
||||
# JWT 配置
|
||||
SECRET_KEY=change-this-to-a-random-secret-key-in-production
|
||||
ALGORITHM=HS256
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES=1440
|
||||
|
||||
# 文件上传配置
|
||||
UPLOAD_DIR=./uploads
|
||||
MAX_FILE_SIZE=52428800
|
||||
|
||||
# 水印配置
|
||||
WATERMARK_TEXT=爱设计 AiSheji.com
|
||||
WATERMARK_OPACITY=128
|
||||
|
||||
# 缩略图配置
|
||||
THUMBNAIL_SIZE=400
|
||||
THUMBNAIL_QUALITY=85
|
||||
|
||||
# CORS 配置
|
||||
ALLOWED_ORIGINS=http://localhost:5173,http://localhost:3000
|
||||
Reference in New Issue
Block a user