FastAPI backend with auth, user, instance, ticket, query, dashboard APIs. React + TypeScript frontend with mock data UI (10 pages). SQLite + async SQLAlchemy, JWT auth, role-based access control. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
25 lines
484 B
Bash
25 lines
484 B
Bash
# 数据库配置
|
|
DATABASE_URL=mysql+pymysql://root:password@localhost:3306/data_audit
|
|
|
|
# Redis 配置
|
|
REDIS_URL=redis://localhost:6379/0
|
|
|
|
# JWT 配置
|
|
SECRET_KEY=your-secret-key-here
|
|
ALGORITHM=HS256
|
|
ACCESS_TOKEN_EXPIRE_MINUTES=120
|
|
|
|
# 应用配置
|
|
DEBUG=True
|
|
HOST=0.0.0.0
|
|
PORT=8000
|
|
|
|
# 邮件配置
|
|
SMTP_HOST=smtp.example.com
|
|
SMTP_PORT=587
|
|
SMTP_USER=noreply@example.com
|
|
SMTP_PASSWORD=your-password
|
|
|
|
# 钉钉配置
|
|
DINGTALK_WEBHOOK=https://oapi.dingtalk.com/robot/send?access_token=xxx
|