[PR #20] [CLOSED] WIP: more docker-friendly proxying #6905

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

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/20
Author: @coolaj86
Created: 10/22/2023
Status: Closed

Base: mainHead: feat-static


📝 Commits (2)

  • 8a181c7 doc(caddy): make 'basicauth' conditional on ENVs
  • f377487 doc(caddy): add Docker-friendly example

📊 Changes

3 files changed (+152 additions, -19 deletions)

View changed files

Caddyfile.docker (+98 -0)
📝 Caddyfile.localhost (+49 -15)
📝 example.env (+5 -4)

📄 Description

Just added an example that uses http://*:8080 as the host that could be used to solve some of the issues of #2 and #15.

It would probably be used something like this:

COPY Caddyfile.docker Caddyfile
START caddy run --config ./Caddyfile

Then it would:

  • serve the files with CORS from any internal / private domain
  • hit the API container through its own proxy
  • without the need for internal CORS between Docker containers

TODO:

  • use reverse_proxy {$OLLAMA_API_HOST} in place of reverse_proxy localhost:11434

🔄 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/20 **Author:** [@coolaj86](https://github.com/coolaj86) **Created:** 10/22/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat-static` --- ### 📝 Commits (2) - [`8a181c7`](https://github.com/open-webui/open-webui/commit/8a181c7e7d1e4cb390553b18e79431be629f3648) doc(caddy): make 'basicauth' conditional on ENVs - [`f377487`](https://github.com/open-webui/open-webui/commit/f377487aff12289e7fcdc25941df52e832862e94) doc(caddy): add Docker-friendly example ### 📊 Changes **3 files changed** (+152 additions, -19 deletions) <details> <summary>View changed files</summary> ➕ `Caddyfile.docker` (+98 -0) 📝 `Caddyfile.localhost` (+49 -15) 📝 `example.env` (+5 -4) </details> ### 📄 Description Just added an example that uses `http://*:8080` as the host that could be used to solve some of the issues of #2 and #15. It would probably be used something like this: ```Dockerfile COPY Caddyfile.docker Caddyfile START caddy run --config ./Caddyfile ``` Then it would: - serve the files with CORS from any internal / private domain - hit the API container through its own proxy - without the need for internal CORS between Docker containers TODO: - [ ] use `reverse_proxy {$OLLAMA_API_HOST}` in place of `reverse_proxy localhost:11434` --- <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:11:10 -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#6905