Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Make ollama-ui usable from other devices #18

Open
rsabir opened this issue Sep 28, 2023 · 2 comments
Open

Feature: Make ollama-ui usable from other devices #18

rsabir opened this issue Sep 28, 2023 · 2 comments

Comments

@rsabir
Copy link

rsabir commented Sep 28, 2023

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.

@rtcfirefly
Copy link
Collaborator

Hi!

Are you hosting ollama-ui on your own server?
Is it the same machine that you are hosting ollama?

@rsabir
Copy link
Author

rsabir commented Oct 9, 2023

Hello,

Yes the ollama-ui is hosted on the same machine as ollama and it's accessed by other devices on the LAN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants