Hello,
I have been working on configuring **ollama-ui**
to be accessible over my local LAN, with the device running it functioning as a server. I've managed to do this successfully by modifying the Makefile
to allow Ollama to listen on 0.0.0.0 and specifying the **OLLAMA_ORIGINS**
to the FQDN of the server as shown below:
OLLAMA_HOST="0.0.0.0:11434" OLLAMA_ORIGINS=http://192.168.1.44:8000 ollama serve
Issues:
However, this approach required altering the visibility of the host-address-select
div by removing display: none;
, enabling me to set my server IP: 192.168.1.44.
<div id="host-address-select" style="display: none;">
<div class="d-flex align-items-center mb-2">
<label for="host-address" class="form-label me-2" style="font-size: smaller;">Host:</label>
<input id="host-address" class="form-control" type="text" placeholder="http://localhost:11434" style="width: auto;"></select>
</div>
</div>
So I could set my server IP : 192.168.1.44.
Proposed Enhancement:
To refine this and make the configuration more user-friendly, I propose the following enhancements:
- Configuration UI Element:
Introduce a settings icon or equivalent UI element.
When clicked, this would reveal the input field allowing users to modify the IP address.
- Placeholder Text:
Update the placeholder text in the input field to contain an IP address example instead of a URI, providing clearer guidance to users setting up their configurations.
- Readme Documentation:
Enrich the README with clear instructions on how to adjust the Makefile and other settings to make ollama-ui accessible over LAN, providing a smoother experience for users unfamiliar with these configurations.