web: dynamic ports redirect errors

This commit is contained in:
2025-10-22 12:20:52 -04:00
committed by sbcrumb
parent df17305160
commit 80a09cf66e
2 changed files with 7 additions and 1 deletions
+6 -1
View File
@@ -1872,10 +1872,15 @@ def register_routes(app, dependencies: dict):
@app.get("/")
async def _core_info():
"""Core container API information - Web interface on separate container"""
import os
# Get configured web port from environment or config
web_port = os.environ.get("WEB_EXTERNAL_PORT",
getattr(dependencies.get("config", None), "web_api_port", "8081"))
return {
"service": "NFOGuard Core Processing Engine",
"version": "2.7.0",
"message": "Web interface available on separate container (port 8081)",
"message": f"Web interface available on separate container (port {web_port})",
"api_endpoints": {
"health": "/health",
"webhooks": "/webhook/*",