Centralize configuration into config.yaml
- All settings moved to config.yaml - configs/load.py reads from config.yaml with env var overrides - Environment variables still work for backward compatibility - Added pyyaml to requirements
This commit is contained in:
@@ -7,7 +7,7 @@ import websockets
|
||||
from loguru import logger
|
||||
|
||||
from app.webrtc.peer_session import PeerSession
|
||||
from configs.default import WS_HOST, WS_MAX_SIZE, WS_PORT
|
||||
from configs.load import WS_HOST, WS_MAX_SIZE, WS_PORT
|
||||
|
||||
|
||||
async def handle_client(websocket):
|
||||
|
||||
Reference in New Issue
Block a user