feat: Phase 1 - 核心功能实现
This commit is contained in:
39
.env.example
Normal file
39
.env.example
Normal file
@@ -0,0 +1,39 @@
|
||||
# PIT Router 配置文件
|
||||
|
||||
# Flask 配置
|
||||
FLASK_ENV=development
|
||||
FLASK_APP=run.py
|
||||
SECRET_KEY=your-secret-key-here-change-in-production
|
||||
JWT_SECRET_KEY=your-jwt-secret-key-here-change-in-production
|
||||
|
||||
# 数据库配置
|
||||
DATABASE_URL=postgresql://user:password@localhost:5432/pit_router
|
||||
# 开发环境可使用 SQLite
|
||||
# DATABASE_URL=sqlite:///app.db
|
||||
|
||||
# Redis 配置
|
||||
REDIS_URL=redis://localhost:6379/0
|
||||
|
||||
# 服务器配置
|
||||
HOST=0.0.0.0
|
||||
PORT=9000
|
||||
DEBUG=True
|
||||
|
||||
# JWT 配置
|
||||
JWT_ACCESS_TOKEN_EXPIRES=86400
|
||||
JWT_REFRESH_TOKEN_EXPIRES=604800
|
||||
|
||||
# WebSocket 配置
|
||||
SOCKETIO_PING_INTERVAL=25000
|
||||
SOCKETIO_PING_TIMEOUT=10000
|
||||
|
||||
# Agent 调度配置
|
||||
SCHEDULER_STRATEGY=weighted_round_robin
|
||||
SCHEDULER_TIMEOUT=30
|
||||
|
||||
# 安全配置
|
||||
RATE_LIMIT=100
|
||||
CORS_ORIGINS=*
|
||||
|
||||
# 日志配置
|
||||
LOG_LEVEL=INFO
|
||||
Reference in New Issue
Block a user