Files
2026-06-27 11:36:36 -04:00

24 lines
670 B
Python

"""
wsgi_panel.py
-------------
WSGI entry point for the JQC superadmin control panel (MT-4).
Serve with a dedicated Gunicorn process + systemd unit:
gunicorn --workers 2 --bind 127.0.0.1:8001 control.panel.wsgi_panel:panel_app
Nginx proxies admin.jqc.app → 127.0.0.1:8001 (see deploy notes in CLAUDE.md).
Required env vars (same /etc/jqc/control.env loaded by the main app):
CONTROL_DATABASE_URL
CONTROL_FERNET_KEY
PANEL_SECRET_KEY
PANEL_IMPERSONATE_KEY
TENANT_BASE_DOMAIN
"""
from control.panel import create_panel_app
panel_app = create_panel_app()
if __name__ == '__main__':
panel_app.run(host='127.0.0.1', port=8001, debug=False)