Update faq.md

This commit is contained in:
Jeffrey Morgan 2024-03-20 17:48:39 +01:00 committed by GitHub
parent a1c0a48524
commit 3a30bf56dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -118,6 +118,14 @@ Ollama can be accessed using a range of tools for tunneling tools. For example w
ngrok http 11434 --host-header="localhost:11434"
```
## How can I use Ollama with Cloudflare Tunnel?
To use Ollama with Cloudflare Tunnel, use the `--url` and `--http-host-header` flags:
```
cloudflared tunnel --url http://localhost:11434 --http-host-header="localhost:11434"
```
## How can I allow additional web origins to access Ollama?
Ollama allows cross-origin requests from `127.0.0.1` and `0.0.0.0` by default. Additional origins can be configured with `OLLAMA_ORIGINS`.