Files
pickling-mes/backend/.env.example

24 lines
548 B
Plaintext
Raw Normal View History

# 数据库配置
DATABASE_URL=postgresql+asyncpg://postgres:password@localhost:5432/pickling_mes
DATABASE_SYNC_URL=postgresql://postgres:password@localhost:5432/pickling_mes
# Redis配置
REDIS_URL=redis://localhost:6379/0
# JWT配置
SECRET_KEY=your-secret-key-change-in-production
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=480
# 服务配置
APP_HOST=0.0.0.0
APP_PORT=8000
DEBUG=true
# L1报文接收配置UDP本机监听
L1_HOST=0.0.0.0
L1_PORT=9000
# 跨域配置
CORS_ORIGINS=["http://localhost:8080","http://127.0.0.1:8080"]