Jun 27 MT-4

This commit is contained in:
2026-06-27 11:11:00 -04:00
parent 7b764c76af
commit 8895bcf762
11 changed files with 1342 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
"""
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)