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 CaddyfileSTART 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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/20
Author: @coolaj86
Created: 10/22/2023
Status: ❌ Closed
Base:
main← Head:feat-static📝 Commits (2)
8a181c7doc(caddy): make 'basicauth' conditional on ENVsf377487doc(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://*:8080as the host that could be used to solve some of the issues of #2 and #15.It would probably be used something like this:
Then it would:
TODO:
reverse_proxy {$OLLAMA_API_HOST}in place ofreverse_proxy localhost:11434🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.