host_fix
This commit is contained in:
3
req.txt
3
req.txt
@@ -8,4 +8,5 @@ uvicorn[standard]
|
||||
typing-extensions
|
||||
aiofiles
|
||||
websockets
|
||||
python-multipart
|
||||
python-multipart
|
||||
python-dotenv
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user