Files
Infosec/Alert Hub System/wsgi.py
T

14 lines
403 B
Python
Raw Normal View History

2026-09-13 20:09:20 +01:00
"""WSGI entry point for AlertHub.
Serves the whole application — the frontoffice at the root and the backoffice
under /backoffice — on a single port.
"""
from app import create_app
application = create_app()
if __name__ == "__main__":
import os
port = int(os.environ.get("APP_PORT", os.environ.get("FRONTOFFICE_PORT", "8080")))
application.run(host="0.0.0.0", port=port, debug=False)