[GH-ISSUE #9359] The variable "ollama_origins" in the Docker image cannot be overwritten #6112

Closed
opened 2026-04-12 17:26:58 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @thymol-zzw on GitHub (Feb 26, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/9359

What is the issue?

The variable "ollama_origins" in the Docker image cannot be overwritten

Relevant log output

The variable "ollama_origins" in the Docker image cannot be overwritten

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

0.5.12

Originally created by @thymol-zzw on GitHub (Feb 26, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/9359 ### What is the issue? The variable "ollama_origins" in the Docker image cannot be overwritten ### Relevant log output ```shell The variable "ollama_origins" in the Docker image cannot be overwritten ``` ### OS Linux ### GPU Nvidia ### CPU Intel ### Ollama version 0.5.12
GiteaMirror added the bug label 2026-04-12 17:26:58 -05:00
Author
Owner

@thymol-zzw commented on GitHub (Feb 26, 2025):

The set OLLAMA_ORIGINS will be automatically appended at the end

<!-- gh-comment-id:2684453408 --> @thymol-zzw commented on GitHub (Feb 26, 2025): The set OLLAMA_ORIGINS will be automatically appended at the end
Author
Owner

@thymol-zzw commented on GitHub (Feb 26, 2025):

My main purpose is to remove 0.0.0.0 and set the specified IP address to be accessible

<!-- gh-comment-id:2684458765 --> @thymol-zzw commented on GitHub (Feb 26, 2025): My main purpose is to remove 0.0.0.0 and set the specified IP address to be accessible
Author
Owner

@rick-github commented on GitHub (Feb 26, 2025):

https://github.com/ollama/ollama/issues/6389

OLLAMA_ORIGINS is not an IP connection whitelist, if you want to restrict access to a certain IP address, you should use a firewall or proxy.

<!-- gh-comment-id:2684807607 --> @rick-github commented on GitHub (Feb 26, 2025): https://github.com/ollama/ollama/issues/6389 `OLLAMA_ORIGINS` is not an IP connection whitelist, if you want to restrict access to a certain IP address, you should use a firewall or proxy.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#6112