bug: Reverse Proxy breaks Microsoft OAuth #1546

Closed
opened 2025-11-11 14:47:15 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @YetheSamartaka on GitHub (Jul 17, 2024).

Bug Report

Description

Bug Summary:
I have WebUI running on Ubuntu 22.04 via Docker, latest version from GitHub and I have reverse proxy setup. So far, everything was pretty much working alright, but when I wanted to add Microsoft OAuth, I've stumbled upon an issue where the redirect URI that is generated is HTTP instead of HTTPS one.

Expected Behavior:
HTTPS Link is generated.

Actual Behavior:
HTTP Link is generated.

Environment

  • Open WebUI Version: [0.3.9]

  • Operating System: [Ubuntu 20.04]

Reproduction Details

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.

Installation Method

Dockerfile

Additional Information

I found Discussion on the GitHub mentioning probably the similar issue https://github.com/open-webui/open-webui/discussions/3727
Where yusiwen is commenting the backend/start.sh, line 58 as of this date that is missing the --proxy-headers argument. However, I've put it on my local fork there, rebuilt the docker image and I still have the issue. How can I proceed further, please?

Originally created by @YetheSamartaka on GitHub (Jul 17, 2024). # Bug Report ## Description **Bug Summary:** I have WebUI running on Ubuntu 22.04 via Docker, latest version from GitHub and I have reverse proxy setup. So far, everything was pretty much working alright, but when I wanted to add Microsoft OAuth, I've stumbled upon an issue where the redirect URI that is generated is HTTP instead of HTTPS one. **Expected Behavior:** HTTPS Link is generated. **Actual Behavior:** HTTP Link is generated. ## Environment - **Open WebUI Version:** [0.3.9] - **Operating System:** [Ubuntu 20.04] ## Reproduction Details **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. ## Installation Method Dockerfile ## Additional Information I found Discussion on the GitHub mentioning probably the similar issue https://github.com/open-webui/open-webui/discussions/3727 Where yusiwen is commenting the backend/start.sh, line 58 as of this date that is missing the --proxy-headers argument. However, I've put it on my local fork there, rebuilt the docker image and I still have the issue. How can I proceed further, please?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#1546