Initial commit: Tianpu Zero-Carbon EMS Platform
Full-stack energy management system for Tianpu Daxing campus. - Frontend: React 19 + TypeScript + Ant Design + ECharts - Backend: FastAPI + SQLAlchemy + PostgreSQL/TimescaleDB - Features: PV monitoring, heat pump management, carbon tracking, alarms, reports Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
19
.env
Normal file
19
.env
Normal file
@@ -0,0 +1,19 @@
|
||||
# Database
|
||||
DATABASE_URL=postgresql+asyncpg://tianpu:tianpu2026@postgres:5432/tianpu_ems
|
||||
DATABASE_URL_SYNC=postgresql://tianpu:tianpu2026@postgres:5432/tianpu_ems
|
||||
DATABASE_URL_LOCAL=postgresql+asyncpg://tianpu:tianpu2026@localhost:5432/tianpu_ems
|
||||
DATABASE_URL_LOCAL_SYNC=postgresql://tianpu:tianpu2026@localhost:5432/tianpu_ems
|
||||
|
||||
# Redis
|
||||
REDIS_URL=redis://redis:6379/0
|
||||
REDIS_URL_LOCAL=redis://localhost:6379/0
|
||||
|
||||
# JWT
|
||||
SECRET_KEY=tianpu-ems-secret-key-change-in-production-2026
|
||||
ALGORITHM=HS256
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES=480
|
||||
|
||||
# App
|
||||
APP_NAME=TianpuEMS
|
||||
DEBUG=true
|
||||
API_V1_PREFIX=/api/v1
|
||||
Reference in New Issue
Block a user