mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #2566] Not properly using WEBUI_URL for logout URL #12932
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 @skrenes on GitHub (May 25, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/2566
Bug Report
Description
Bug Summary:
The logout URL is not using
WEBUI_URL.Steps to Reproduce:
Set the environment variable
WEBUI_URL=https://example.com. Sign into Open-WebUI and then sign out.Expected Behavior:
The URL after logging out should be
WEBUI_URL/auth (e.g. example.com/auth).Actual Behavior:
The URL after logging out is
WEBUI_URL:{reverse-proxy-port}/auth/ (e.g. https://example.com:2828/auth/).Environment
Open WebUI Version: v0.1.125
Ollama (if applicable): N/A
Operating System: Debian GNU/Linux 12 (bookworm) / Docker version 26.1.3, build b72abbb
Browser (if applicable): Chromium v125.0.6422.60 and Safari v17.5
Reproduction Details
Confirmation:
Installation Method
Additional Information
I have an nginx-proxy that routes https://example.com to Open WebUI. It's a slightly customized version of nginx-proxy. It works by having my router forward
WAN_IP:443toSERVER_IP:reverse_proxy_port(which is2828), which is Nginx that forwards tohttp://open-webui:8080.I have dozens of containers that have no problem with this, so it's interesting that Open WebUI has figured out the
reverse_proxy_portof 2828, unless that's just coincidence. In any case, it should respectWEBUI_URLverbatim (including port, which is implied as 443 since the protocol is https) when it's defined.