Fix SocketIO WebSocket connections for production

This commit is contained in:
Beverly Nguyen
2025-09-11 00:00:34 -07:00
parent f5835427b4
commit 2fc6c48ed4
2 changed files with 5 additions and 1 deletions

View File

@@ -104,6 +104,7 @@ redis_store = RedisClient()
document_download_client = DocumentDownloadClient()
socketio = SocketIO(
async_mode='gevent',
cors_allowed_origins=[
config.Config.ADMIN_BASE_URL,
],

View File

@@ -2,4 +2,7 @@ from gevent import monkey
monkey.patch_all()
from application import application # noqa
from application import application as flask_app # noqa
from app import socketio # noqa
application = socketio