add some missing code directives in docs (#664)

This commit is contained in:
Jiayu Liu
2023-10-02 02:51:01 +08:00
committed by GitHub
parent 0a4f21c0a7
commit 4fc10acce9
4 changed files with 24 additions and 25 deletions

View File

@@ -2,13 +2,13 @@
## How can I expose the Ollama server?
```
```bash
OLLAMA_HOST=0.0.0.0:11435 ollama serve
```
By default, Ollama allows cross origin requests from `127.0.0.1` and `0.0.0.0`. To support more origins, you can use the `OLLAMA_ORIGINS` environment variable:
```
```bash
OLLAMA_ORIGINS=http://192.168.1.1:*,https://example.com ollama serve
```
@@ -16,4 +16,3 @@ OLLAMA_ORIGINS=http://192.168.1.1:*,https://example.com ollama serve
* macOS: Raw model data is stored under `~/.ollama/models`.
* Linux: Raw model data is stored under `/usr/share/ollama/.ollama/models`