reworked structure and improved performance to handle 500 concurrent users

This commit is contained in:
2026-02-20 18:31:16 +01:00
parent 7226c0c698
commit f192355ec6
21 changed files with 1535 additions and 386 deletions

View File

@@ -9,7 +9,7 @@ from app.auth import init_auth
from app.seed_db import seed_courses
from app.config import Config
socketio = SocketIO(async_mode='eventlet', cors_allowed_origins="*")
socketio = SocketIO(async_mode='eventlet', cors_allowed_origins="*", message_queue='redis://redis:6379')
def create_app(config_class=Config):
# 1. Setup Log Directory
@@ -42,5 +42,13 @@ def create_app(config_class=Config):
socketio.init_app(app)
from .routes import main
from .blueprints.slides import slides_bp
from .blueprints.admin import admin_bp
from .blueprints.grafana import grafana_bp
app.register_blueprint(main)
app.register_blueprint(slides_bp)
app.register_blueprint(admin_bp)
app.register_blueprint(grafana_bp)
return app