mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 14:34:21 +01:00
Allow setting SocketIO async mode from envvar or config.py (#773)
* Allow setting SocketIO async mode from envvar or config.py
This commit is contained in:
@@ -134,6 +134,7 @@ def create_app(config='CTFd.config.Config'):
|
||||
# If you have multiple workers you must have a shared cache
|
||||
socketio.init_app(
|
||||
app,
|
||||
async_mode=app.config.get('SOCKETIO_ASYNC_MODE'),
|
||||
message_queue=app.config.get('CACHE_REDIS_URL')
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user