Open WebUI + FastAPI Local API Routing Behind Public Domain Setup

Job ID: 39562893

Budget: $10 – $30 USD

Project Description:
We are running Open WebUI (frontend) and a FastAPI backend (LLM API) inside the same Docker server (VPS).

Current Setup:
Open WebUI: Needs to be accessible via a public IP / domain (e.g., https://webui.mydomain.com)

FastAPI backend (our LLM model): Running locally on 127.0.0.1:8000 inside the same Docker environment

Both services are on the same host machine



Main Requirement:
We want Open WebUI to send and receive API calls locally (directly to 127.0.0.1:8000) for backend completions,
even when external users access Open WebUI over public IP / domain.

In short:
Frontend traffic can come from the web, but all Open WebUI → FastAPI API traffic must remain local, fast, and not pass through the public internet.

Very important: We have already tried cloudflare tunnel and other methods, but none of them is stable. connection get interrupted after some time.


In your proposal, please mention your strategy to achieve this to make sure you understood the requirement and that is aligned with our needs.
If your proposal don't contain your strategy, you'll not be picked for discussion

thank you
Related categories: PHP JavaScript Linux Software Architecture Node.js