2023-08-10 21:17:53 +00:00
# FAQ
## How can I expose the Ollama server?
2023-10-01 18:51:01 +00:00
```bash
2023-08-10 21:17:53 +00:00
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:
2023-10-01 18:51:01 +00:00
```bash
2023-08-10 21:17:53 +00:00
OLLAMA_ORIGINS=http://192.168.1.1:*,https://example.com ollama serve
```
## Where are models stored?
2023-09-27 20:49:43 +00:00
* macOS: Raw model data is stored under `~/.ollama/models` .
* Linux: Raw model data is stored under `/usr/share/ollama/.ollama/models`