Files
ReVoltVPN/server_hivemind_5_0.py
T
esefxdz adf6de5dc0 refactor(server): split hivemind monolith into modular package
- server_hivemind_5_0.py: 744-line monolith → 19-line entry point shim
- hivemind/ package (8 files, gitignored): config, sessions, xray,
  admob, management, api, main, README
- Encapsulated locks in classes (SessionStore, XrayManager,
  AdMobVerifier) — fixes 3 critical race conditions
- Added localhost-gated /api/swarm and /api/log with log ring buffer
- swarm_watch.py: Rich TUI monitor for local server dashboards
- Backed up original monolith to backups/hivemind_backup_2.py
2026-07-30 17:40:07 +03:00

20 lines
508 B
Python

#!/usr/bin/env python3
"""
Hivemind VPN Session Manager — thin entry point.
The full implementation lives in the ``hivemind/`` package.
This file exists for backward compatibility with the systemd service unit
and for direct ``python server_hivemind_5_0.py`` runs.
gunicorn (production)::
gunicorn -w 1 --threads 8 -b 127.0.0.1:5000 hivemind.main:app
See ``hivemind/config.py`` for all tunables.
"""
from hivemind.main import app
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000)