mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-10 11:23:55 -04:00
Fix SocketIO WebSocket connections for production
This commit is contained in:
@@ -104,6 +104,7 @@ redis_store = RedisClient()
|
||||
document_download_client = DocumentDownloadClient()
|
||||
|
||||
socketio = SocketIO(
|
||||
async_mode='gevent',
|
||||
cors_allowed_origins=[
|
||||
config.Config.ADMIN_BASE_URL,
|
||||
],
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user