# 应用配置
APP_NAME=资产管理系统
APP_VERSION=1.0.0
APP_ENVIRONMENT=development
DEBUG=True
API_V1_PREFIX=/api/v1

# 服务器配置
HOST=0.0.0.0
PORT=8000

# 数据库配置
DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/asset_management
DATABASE_ECHO=False

# Redis配置
REDIS_URL=redis://localhost:6379/0
REDIS_MAX_CONNECTIONS=50

# JWT配置
SECRET_KEY=your-secret-key-change-in-production
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=15
REFRESH_TOKEN_EXPIRE_DAYS=7

# CORS配置
CORS_ORIGINS=["http://localhost:5173","http://localhost:3000","http://127.0.0.1:5173"]
CORS_ALLOW_CREDENTIALS=True
CORS_ALLOW_METHODS=["*"]
CORS_ALLOW_HEADERS=["*"]

# 文件上传配置
UPLOAD_DIR=uploads
MAX_UPLOAD_SIZE=10485760
ALLOWED_EXTENSIONS=["png","jpg","jpeg","gif","pdf","xlsx","xls"]

# 验证码配置
CAPTCHA_EXPIRE_SECONDS=300
CAPTCHA_LENGTH=4

# 日志配置
LOG_LEVEL=INFO
LOG_FILE=logs/app.log
LOG_ROTATION=500 MB
LOG_RETENTION=10 days

# 分页配置
DEFAULT_PAGE_SIZE=20
MAX_PAGE_SIZE=100

# 二维码配置
QR_CODE_DIR=uploads/qrcodes
QR_CODE_SIZE=300
QR_CODE_BORDER=2
