mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #2814] HTTP Basic Auth not working on OLLAMA_BASE_URL #28551
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TheMcSebi on GitHub (Jun 4, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/2814
Bug Report
Description
Bug Summary:
HTTP Basic Auth not working on OLLAMA_BASE_URL, e.g. https://user:pass@ollama-host.tld
Steps to Reproduce:
Use a ollama proxy requiring basic auth for setup.
Expected Behavior:
Authentication works as expected
Actual Behavior:
No connection with the ollama server is possible
Environment
Open WebUI Version: 0.2.2
Ollama (if applicable): 0.1.41
Operating System: Ubuntu 20.04 (on WSL2)
Installation type: docker command: docker run -d -p 3000:8080 -e NODE_TLS_REJECT_UNAUTHORIZED=0 -e OLLAMA_BASE_URL=https://user:pass@ollama-host.internalnetwork.tld/ -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
Reproduction Details
The bug is present in the ollama-python package and will propably be fixed once this PR is accepted: https://github.com/ollama/ollama-python/pull/61
I didn't investigate the open-webui code, so I'm not sure if there's stuff along the way that might breaking things, but as the full url shows up in the web interface on the Ollama API config line I'm quite certain nothing on open-webui's end needs to be done.
@tjbck commented on GitHub (Jun 4, 2024):
#2305