[GH-ISSUE #771] Looking up environment variables while starting the server via Electron #26129

Closed
opened 2026-04-22 02:09:41 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @ba1uev on GitHub (Oct 12, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/771

Constant users of web clients may configure some of the supported variables in profile files such as ~/.bash_profile, ~/.zshrc, etc.

echo "export OLLAMA_ORIGINS=https://example.com OLLAMA_HOST=0.0.0.0:1337" >> ~/.zshrc

The server launched manually using ollama serve will utilize these variables. It would be beneficial to support them for the server launched via the Electron application.

Originally created by @ba1uev on GitHub (Oct 12, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/771 Constant users of web clients may configure some of the supported variables in profile files such as `~/.bash_profile`, `~/.zshrc`, etc. ```bash echo "export OLLAMA_ORIGINS=https://example.com OLLAMA_HOST=0.0.0.0:1337" >> ~/.zshrc ``` The server launched manually using `ollama serve` will utilize these variables. It would be beneficial to support them for the server launched via the Electron application.
GiteaMirror added the feature requestgood first issue labels 2026-04-22 02:09:41 -05:00
Author
Owner

@technovangelist commented on GitHub (Dec 9, 2023):

I had made a comment and closed this issue because it looked like you were commenting about a specific electron app. But now I am relooking and I think i misunderstood. You are referring to Ollama on the Mac, right?

Yes this is a problem that I hope we solve soon. Thanks for submitting the issue.

<!-- gh-comment-id:1847993248 --> @technovangelist commented on GitHub (Dec 9, 2023): I had made a comment and closed this issue because it looked like you were commenting about a specific electron app. But now I am relooking and I think i misunderstood. You are referring to Ollama on the Mac, right? Yes this is a problem that I hope we solve soon. Thanks for submitting the issue.
Author
Owner

@lengrongfu commented on GitHub (May 11, 2024):

This pr https://github.com/ollama/ollama/pull/4154 should fix it, we can close?

<!-- gh-comment-id:2105527259 --> @lengrongfu commented on GitHub (May 11, 2024): This pr https://github.com/ollama/ollama/pull/4154 should fix it, we can close?
Author
Owner

@ba1uev commented on GitHub (May 13, 2024):

yes, thank you

<!-- gh-comment-id:2107158876 --> @ba1uev commented on GitHub (May 13, 2024): yes, thank you
Author
Owner

@mohitpaddhariya commented on GitHub (Jan 28, 2025):

@BruceMacD could you assign that issue to me?

<!-- gh-comment-id:2617255072 --> @mohitpaddhariya commented on GitHub (Jan 28, 2025): @BruceMacD could you assign that issue to me?
Author
Owner

@BruceMacD commented on GitHub (Jan 28, 2025):

Hi @dev-mohit06, looks like this issue was actually resolved by #4154 as lengrongfu has pointed out. Resolving this one for now.

<!-- gh-comment-id:2619774653 --> @BruceMacD commented on GitHub (Jan 28, 2025): Hi @dev-mohit06, looks like this issue was actually resolved by #4154 as lengrongfu has pointed out. Resolving this one for now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#26129