feat: Add environment configuration files and update settings for production and development
Some checks failed
Backend CI / lint (push) Failing after 5m0s
Backend CI / test (push) Successful in 3m39s

This commit is contained in:
JSC
2025-08-09 14:43:20 +02:00
parent 69544b6bb8
commit 734521c5c3
9 changed files with 202 additions and 11 deletions

View File

@@ -4,6 +4,7 @@ import logging
import socketio
from app.core.config import settings
from app.utils.auth import JWTUtils
from app.utils.cookies import extract_access_token_from_cookies
@@ -16,7 +17,7 @@ class SocketManager:
def __init__(self) -> None:
"""Initialize the SocketManager with a Socket.IO server."""
self.sio = socketio.AsyncServer(
cors_allowed_origins=["http://localhost:8001"],
cors_allowed_origins=settings.CORS_ORIGINS,
logger=True,
engineio_logger=True,
async_mode="asgi",