I would like to have my ollama service accessible by another host and therefore need the environment variable OLLAMA_HOST set to 0.0.0.0:11434.
I tried to configure it per the manual:
services.ollama = {
enable = true;
acceleration = "rocm";
environmentVariables = {
ROC_ENABLE_PRE_VEGA = "1";
HSA_OVERRIDE_GFX_VERSION = "11.0.0";
OLLAMA_HOST = "0.0.0.0:11434";
};
};
This does not work, the service is not accessible and ss -tuln also shows
127.0.0.1:11434
Also, in /etc/systemd/system/ollama.service the entry is
Environment="OLLAMA_HOST=127.0.0.1:11434"
I searched the internet up and down, but I am stuck…
Thanks for any help or debugging pointers.