From 3a30bf56dcc4e8b2b8e4cb7f4615954acb883155 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Wed, 20 Mar 2024 17:48:39 +0100 Subject: [PATCH] Update faq.md --- docs/faq.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/faq.md b/docs/faq.md index 2d7bca5e..7e891eac 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -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`.