from fastapi import FastAPI from fastapi.responses import HTMLResponse app = FastAPI() @app.get("/", response_class=HTMLResponse) async def home(): html_content = """
The IKEv2 server process is running alongside this Web UI.
IKEv2 Status: Running (Managed by Supervisord)
Web UI Port: TCP 8000 (Uvicorn)
VPN Ports: UDP 500 & 4500 (pvpn)
In a full implementation, this UI would show logs, connection counts, and allow configuration changes.
""" return html_content @app.get("/status") async def status(): # In a real app, this would check if the vpn_server process is alive return {"status": "ok", "service": "Web UI", "vpn_server": "running (assumed)"}