This commit is contained in:
2025-12-03 19:06:54 +09:00
parent f05e8e728f
commit a535e1c6b5
2 changed files with 6 additions and 2 deletions

View File

@@ -8,4 +8,5 @@ uvicorn[standard]
typing-extensions
aiofiles
websockets
python-multipart
python-multipart
python-dotenv

View File

@@ -20,6 +20,7 @@ from typing import Dict, List, Optional, Set, Tuple, Any
from collections import defaultdict
from multiprocessing import Process, Manager, Queue, cpu_count, freeze_support
from concurrent.futures import ProcessPoolExecutor
from dotenv import load_dotenv
import cv2
import numpy as np
@@ -33,9 +34,11 @@ from fastapi.templating import Jinja2Templates
from pydantic import BaseModel
import psutil
load_dotenv()
# ========== КОНФИГУРАЦИЯ ==========
SERVER_CONFIG = {
"host": "0.0.0.0", # сюда IP смотрящий наружу или 0.0.0.0 для всех интерфейсов
"host": os.getenv("host", "0.0.0.0"), # сюда IP смотрящий наружу или 0.0.0.0 для всех интерфейсов
"port": 8000,
"debug": False,
"max_clients_per_room": 50,