mirror of
https://github.com/open-webui/docs.git
synced 2026-11-05 01:38:13 +00:00
[GH-ISSUE #782] Trusted Header examples for Docker appear to be incorrect #106
Labels
No labels
bug
documentation
documentation
duplicate
enhancement
enhancement
good first issue
good first issue
good first issue
help wanted
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/docs#106
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @EnigmaCurry on GitHub (Oct 28, 2025).
Original GitHub issue: https://github.com/open-webui/docs/issues/782
I am currently implementing Trusted Header authentication on my open-webui instance via traefik-forward-auth, which is very similar to the oauth2-proxy example in the docs:
In this example, the open-webui container receives the env var
HOST=127.0.0.1, which tells open-webui to bind only to the container's loopback interface. Theoauth2-proxysidecar container cannot reach the open-webui container on its loopback interface, because it is a separate container and it has its own loopback interface. The DNS nameopen-webuidoes not resolve to 127.0.0.1, it resolves to the subnet of the default Docker compose network (e.g.,172.21.0.2). So in my environment, I had to remove theHOSTvar so that the proxy could talk to it.There are three other Docker examples on this page for other providers, and I believe they will have the same problem.
I think the suggestion of setting
HOST=127.0.01only makes sense if you are running open-webui and the proxy on the native host (i.e., not as containers). Since these docker-compose examples have noportsopen on the open-webui container, it is effectively already protected from public access except through the proxy (or from the Docker host itself).