Files
JQC_multi_tenant/control/panel/wsgi_panel.py
T
2026-06-27 11:11:00 -04:00

25 lines
657 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:5001 wsgi_panel:panel_app
Nginx proxies admin.jqc.app → 127.0.0.1:5001 (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=5001, debug=False)