[PR #111] [MERGED] feat: backend reverse proxy #6963

Closed
opened 2025-11-11 17:13:00 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/111
Author: @tjbck
Created: 11/15/2023
Status: Merged
Merged: 11/15/2023
Merged by: @tjbck

Base: mainHead: dev


📝 Commits (10+)

  • 6a9bef7 feat: backend reverse proxy
  • b1f1d1d chore: version update
  • 3c89588 feat: docker compose backend support update
  • bc9884c Merge branch 'main' into dev
  • 4bc04fe doc: demo updated
  • 882f173 doc: features updated
  • fb77db3 doc: external ollama server usage updated
  • 69b7fa0 doc: setup instructions clarified
  • fc3bf33 doc: todo list updated
  • 0fe673a doc: docker command update

📊 Changes

18 files changed (+228 additions, -66 deletions)

View changed files

📝 Dockerfile (+22 -6)
📝 README.md (+43 -47)
backend/.gitignore (+2 -0)
backend/apps/ollama/main.py (+55 -0)
backend/config.py (+15 -0)
backend/dev.sh (+1 -0)
backend/main.py (+51 -0)
backend/requirements.txt (+19 -0)
backend/start.sh (+1 -0)
📝 compose.yaml (+4 -4)
📝 demo.gif (+0 -0)
📝 package.json (+2 -2)
📝 run.sh (+1 -1)
📝 src/lib/constants.ts (+1 -1)
📝 src/routes/+error.svelte (+7 -1)
📝 src/routes/+layout.js (+2 -2)
📝 src/routes/+page.svelte (+1 -1)
📝 svelte.config.js (+1 -1)

📄 Description

Resolves #89
Enables solution for #68 #31

Enhances security as you no longer need to expose Ollama over LAN (or network) by removing the need for following env variables when both Ollama and Ollama Web UI is hosted from the same machine:

  • OLLAMA_HOST=0.0.0.0
  • OLLAMA_ORIGINS=*

Introduces the following breaking changes:

  • --add-host=host.docker.internal:host-gateway is now required by default to run ollama-webui docker container
  • e.g) docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway --name ollama-webui --restart always ollama-webui

TODO:

  • doc update
  • more testing required

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/111 **Author:** [@tjbck](https://github.com/tjbck) **Created:** 11/15/2023 **Status:** ✅ Merged **Merged:** 11/15/2023 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `main` ← **Head:** `dev` --- ### 📝 Commits (10+) - [`6a9bef7`](https://github.com/open-webui/open-webui/commit/6a9bef755be74516160a33ae343624478ea60d44) feat: backend reverse proxy - [`b1f1d1d`](https://github.com/open-webui/open-webui/commit/b1f1d1d8aead11253c24c7040e1b4726d6dc8359) chore: version update - [`3c89588`](https://github.com/open-webui/open-webui/commit/3c89588cd9bf73e24621ba6a95363866216584e1) feat: docker compose backend support update - [`bc9884c`](https://github.com/open-webui/open-webui/commit/bc9884c465a7a906662b0921b11fa8cd56aca9b0) Merge branch 'main' into dev - [`4bc04fe`](https://github.com/open-webui/open-webui/commit/4bc04fe3a513f3174e17ee43a93799dc617e3f9a) doc: demo updated - [`882f173`](https://github.com/open-webui/open-webui/commit/882f1732892f4fe1ee3ec7a118fd0b334cabb253) doc: features updated - [`fb77db3`](https://github.com/open-webui/open-webui/commit/fb77db3030f545e80e4fb16d85c14a291c009a8a) doc: external ollama server usage updated - [`69b7fa0`](https://github.com/open-webui/open-webui/commit/69b7fa0dbd4d959c0a641625381e3c281fdbae05) doc: setup instructions clarified - [`fc3bf33`](https://github.com/open-webui/open-webui/commit/fc3bf33efa5926c46408b89f326583f58e328343) doc: todo list updated - [`0fe673a`](https://github.com/open-webui/open-webui/commit/0fe673a5236414d32b4b3c25b23dd7c77f993278) doc: docker command update ### 📊 Changes **18 files changed** (+228 additions, -66 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+22 -6) 📝 `README.md` (+43 -47) ➕ `backend/.gitignore` (+2 -0) ➕ `backend/apps/ollama/main.py` (+55 -0) ➕ `backend/config.py` (+15 -0) ➕ `backend/dev.sh` (+1 -0) ➕ `backend/main.py` (+51 -0) ➕ `backend/requirements.txt` (+19 -0) ➕ `backend/start.sh` (+1 -0) 📝 `compose.yaml` (+4 -4) 📝 `demo.gif` (+0 -0) 📝 `package.json` (+2 -2) 📝 `run.sh` (+1 -1) 📝 `src/lib/constants.ts` (+1 -1) 📝 `src/routes/+error.svelte` (+7 -1) 📝 `src/routes/+layout.js` (+2 -2) 📝 `src/routes/+page.svelte` (+1 -1) 📝 `svelte.config.js` (+1 -1) </details> ### 📄 Description Resolves #89 Enables solution for #68 #31 Enhances security as you no longer need to expose Ollama over LAN (or network) by removing the need for following env variables when both Ollama and Ollama Web UI is hosted from the same machine: * `OLLAMA_HOST=0.0.0.0` * `OLLAMA_ORIGINS=*` Introduces the following breaking changes: * `--add-host=host.docker.internal:host-gateway` is now required by default to run ollama-webui docker container * e.g) ``` docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway --name ollama-webui --restart always ollama-webui ``` TODO: - [x] doc update - [x] more testing required --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 17:13:00 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#6963