- FastAPI REST API with JWT auth - aiogram 3 Telegram bot with admin middleware - APScheduler daily tasks (expiry, reminders, revoke, sync) - SQLAlchemy 2 async ORM with Alembic migrations - Jinja2 admin panel (Dashboard, Users, Payments, Servers, Tariffs) - VPN provider abstraction with MockProvider - Stats service with revenue/subscription analytics - Docker Compose (PostgreSQL + Redis + app) - Healthcheck endpoint
9 lines
173 B
Bash
Executable File
9 lines
173 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Running database migrations..."
|
|
alembic upgrade head
|
|
|
|
echo "Starting application..."
|
|
exec uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-8000}
|