Files
ayurishchevandClaude Sonnet 5.5 79c950f8f7 Prod upgrade fixes: profiler compatibility with new FastAPI, pinned dependencies
- profiler: Literal instead of Query(enum=...) (broke on FastAPI 0.162)
- pin fastapi/starlette/uvicorn/pydantic for the profiler, upper bounds for APP_CORE
- health check: show the service log when an HTTP check fails
- update.sh: the "before" version comes from deploy.state
- migrate.py: hint about OVPMON_*_DB_PATH when the default database is missing
- docs: --source --no-pull mode, dependency pinning, PIP_CONSTRAINT
- tests: new test for the section parameter, fixed test_server_process.py

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 00:03:39 +03:00
..
2026-01-28 22:37:47 +03:00
2026-01-28 22:37:47 +03:00

OpenVPN Profiler Module (APP_PROFILER)

The Profiler module is a FastAPI-based service (port 8000) dedicated to management tasks:

  • Public Key Infrastructure (PKI) management (EasyRSA wrapper).
  • Client Profile (.ovpn) generation.
  • Server Configuration management.
  • Process control (Start/Stop OpenVPN service).

Documentation

  • API Reference: See DOCS/Profiler_Management/API_Reference.md.
  • Overview: See DOCS/Profiler_Management/Overview.md.

Quick Start (Dev)

# Setup
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

# JWT key (required, no built-in default; at least 32 characters). Must be the same value as for APP_CORE
export OVPMON_API_SECRET_KEY=$(openssl rand -hex 32)

# Run
python3 main.py
# Swagger UI available at http://localhost:8000/docs