Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 615 Bytes

linux.md

File metadata and controls

24 lines (19 loc) · 615 Bytes

Linux

Add OLLAMA_ORIGINS Environment Variable to Ollama Startup Service

  1. Follow Ollama's instructions for adding it as a startup service.
  2. In the service file, set Environment to "OLLAMA_ORIGINS=chrome-extension://*".

Example service file:

[Unit]
Description=Ollama Service
After=network-online.target

[Service]
Environment="OLLAMA_ORIGINS=chrome-extension://*"
ExecStart=/usr/bin/ollama serve
User=ollama
Group=ollama
Restart=always
RestartSec=3

[Install]
WantedBy=default.target