mirror of
https://github.com/open-webui/docs.git
synced 2026-07-20 07:04:31 -04:00
Trusted Header examples for Docker appear to be incorrect #106
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 @EnigmaCurry on GitHub (Oct 28, 2025).
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).