Files
operating-room-monitor-server/backend/.env
Kevin 9f9f24aa05 Add RTSP prewarm keep-alive and track backend/.env for team defaults.
Background ffmpeg pull on all site cameras reduces cold-start latency on start_surgery; timing logs record connect and ready phases. Enable via RTSP_PREWARM_ENABLED in the committed env.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-26 13:16:42 +08:00

45 lines
1.6 KiB
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 本地/联调。部署项以外默认值见 `app/baked/algorithm.py`、`app/baked/pipeline.py`。
# 启动前执行 `alembic upgrade head``./start.sh` 已跑)。
# --- PostgreSQL宿主机映射端口避免与本地 35432 冲突)---
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=operation_room
POSTGRES_HOST=localhost
POSTGRES_PORT=45432
DOCKER_POSTGRES_PUBLISH_PORT=45432
# DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:45432/operation_room
# --- 手术室站点配置(严格 JSON仅含 video_rtsp_urls + voice_or_room_bindings---
# 示例app/resources/or_site_config.sample.json。一键联调会向该文件合并更新 video_rtsp_urls须可写。
OR_SITE_CONFIG_JSON_FILE=app/resources/or_site_config.sample.json
# --- RTSP 预热(进程启动后对站点 JSON 全部机位 keep-alive缩短开录冷启动---
RTSP_PREWARM_ENABLED=true
RTSP_PREWARM_RECONNECT_MAX_SEC=30
# --- 百度 ---
BAIDU_APP_ID=31461922
BAIDU_API_KEY=8NjVDPUl64fg7InpxOka69TE
BAIDU_SECRET_KEY=DzIO6BTdABb0jFu80jWGDfmpxFfwlvA0
BAIDU_ASR_DEV_PID=1537
# 人脸脚本 `scripts/baidu_face_1n_search.py`
BAIDU_FACE_GROUP_ID_LIST=2_1
# --- MinIO宿主机映射端口避免与本地 9000/9001 冲突)---
MINIO_PORT=19000
MINIO_CONSOLE_PORT=19001
MINIO_ENDPOINT=127.0.0.1:19000
MINIO_ACCESS_KEY=minioadmin
MINIO_SECRET_KEY=minioadmin
MINIO_BUCKET=operation-room-voice
MINIO_SECURE=false
# --- Demo 客户端联调 ---
DEMO_CORS_ENABLED=true
DEMO_CORS_ORIGINS=*
DEMO_ORCHESTRATOR_ENABLED=true
DEMO_ORCHESTRATOR_RTSP_PORT=18554
DEMO_ORCHESTRATOR_RTSP_JSON_HOST=127.0.0.1
DEMO_HLS_PREVIEW_UPSTREAM=http://mediamtx-hls:8888