From be230bc6952c3469be288902f2e3ecd457643dfe Mon Sep 17 00:00:00 2001 From: Ayo Date: Wed, 4 Mar 2026 19:13:30 +0100 Subject: [PATCH] feat: add instructions on how to expose ollama on linux --- expose-ollama.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 expose-ollama.md diff --git a/expose-ollama.md b/expose-ollama.md new file mode 100644 index 0000000..e32cd4c --- /dev/null +++ b/expose-ollama.md @@ -0,0 +1,19 @@ +# Expose ollama on the local network via IP + +1\. Edit the systemd service by calling: `systemctl edit ollama.service` + +2\. Add the following line under the [Service] section: + +```ini +[Service] +Environment="OLLAMA_HOST=0.0.0.0:11434" +``` + +3\. Save and exit the editor. + +4\. Reload systemd and restart Ollama: + +```bash +sudo systemctl daemon-reload +sudo systemctl restart ollama +```