Skip to content

Commit 2ff7e50

Browse files
authored
Add CORS_ALLOW_ORIGIN to ollama-serve defaults
1 parent 78f873e commit 2ff7e50

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#SPDX-License-Identifier: MIT-0
22
---
33
# defaults file for ollama-serve
4+
ollama_serve_fqdn: "http://localhost:3000"
45
ollama_serve_model_dir: /opt/ollama/models
56
ollama_serve_env:
67
OLLAMA_FLASH_ATTENTION: "1"
78
OLLAMA_MODELS: "{{ ollama_serve_model_dir }}"
9+
CORS_ALLOW_ORIGIN: "{{ ollama_serve_fqdn }}"
810
ollama_serve_model: ""
911
ollama_serve_version: 12.0.10

0 commit comments

Comments
 (0)