doc: external ollama connection updated

This commit is contained in:
Timothy J. Baek 2023-11-15 12:16:24 -08:00
parent e4281e56cd
commit eff48d7e3f

View file

@ -94,24 +94,6 @@ Your Ollama Web UI should now be hosted at [http://localhost:3000](http://localh
### Accessing External Ollama on a Different Server
#### Prerequisites
If you want to access an external Ollama Server hosted over LAN (or Network), for example, Ollama from your cloud server and Ollama Web UI on your localhost, run Ollama using the following command:
```bash
OLLAMA_HOST=0.0.0.0 OLLAMA_ORIGINS=* ollama serve
```
In case you encounter any issues running the command and encounter errors, ensure to turn off any existing Ollama service that might be running in the background before retrying.
If you're running Ollama via Docker:
```bash
docker run -d -v ollama:/root/.ollama -p 11434:11434 -e OLLAMA_ORIGINS="*" --name ollama ollama/ollama
```
#### Installing Ollama Web UI
Change `OLLAMA_API_BASE_URL` environment variable to match the external Ollama Server url:
```bash