Opencode-Cli / proxy.py

Commit History

  1. fix: copy gateway directory in Dockerfile and insert BASE_DIR into sys.path to eliminate ModuleNotFoundError

    Hermes Agent
    d262fc5
  2. refactor: modularize proxy gateway into 5 dedicated service routers (opencode, openwebui, omniroute, jellyfin, tg_stream) with location redirect fix & websocket CORS allow

    Hermes Agent
    8cd4896
  3. fix: resolve Open WebUI and OmniRoute subpath routing by injecting JS fetch interceptors and removing conflicting API endpoint overrides

    Hermes Agent
    fca969e
  4. feat: complete rebuild of proxy gateway with lifespan pool, streaming SSE/video support, and resilient retry logic

    Hermes Agent
    f4a0e33
  5. Fix python type annotation: replace builtin callable with typing.Callable

    Hermes Agent
    9ff9dd1
  6. Fix ALL proxy issues: proper prefix-stripping for OpenWebUI, OmniRoute, OpenCode WS; zero JS corruption; correct WEBUI_URL env var

    Hermes Agent
    b659042
  7. Fix: Remove WEBUI_PREFIX, route Open WebUI assets directly on port 8098, and enforce clean HTTPS Location headers

    Hermes Agent
    354bd04
  8. Fix: Route /_app and /static to /openwebui/_app and /openwebui/static, and force absolute HTTPS Location headers

    Hermes Agent
    7027d7c
  9. Fix: Add OpenCode /command, /provider, /model, /mcp REST endpoints, strip :4096 from Location headers, and map Open WebUI API routes

    Hermes Agent
    47691d9
  10. Fix JS bundle corruption & 404s: Restrict sub_filters to text/html only, fix Open WebUI /openwebui/ asset prefixing

    Hermes Agent
    63622cd
  11. Harden proxy.py: Add _strip_internal_ports for universal body/header port stripping + add /debug/status endpoint

    Hermes Agent
    8e7ea58
  12. Fix FastAPI Gateway: Add HEAD method for HF health check, /dashboard & /login routes for OmniRoute, case-insensitive /Jellyfin, and smart Referer fallback

    Hermes Agent
    1a13eed

  1. Migrate reverse proxy gateway from Nginx to custom FastAPI Uvicorn server (proxy.py) on port 4096

    Hermes Agent
    9f73dae