Jun 27 MT-4
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user