[PR #22610] [CLOSED] fix: respect FORWARDED_ALLOW_IPS environment variable in start.sh #49828

Closed
opened 2026-04-30 02:12:12 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/22610
Author: @xr843
Created: 3/12/2026
Status: Closed

Base: devHead: fix/forwarded-allow-ips-v2


📝 Commits (1)

  • 4fc924c fix: respect FORWARDED_ALLOW_IPS environment variable in start.sh

📊 Changes

1 file changed (+4 additions, -3 deletions)

View changed files

📝 backend/start.sh (+4 -3)

📄 Description

Pull Request Checklist

  • Target branch: dev
  • Description: Provided below.
  • Changelog: Included below.
  • Testing: Manually verified default behavior unchanged (* when env var not set), and custom value is passed when FORWARDED_ALLOW_IPS is set.
  • Code review: Self-reviewed, minimal 3-line change.

Changelog Entry

Description

start.sh hardcodes --forwarded-allow-ips '*' in both the HuggingFace Space path and the main uvicorn startup, ignoring the FORWARDED_ALLOW_IPS environment variable documented in .env.example. This change reads FORWARDED_ALLOW_IPS from the environment with '*' as the default fallback.

Fixed

  • FORWARDED_ALLOW_IPS environment variable is now respected in start.sh instead of being hardcoded to '*' (fixes #22539)

Contributor License Agreement


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/22610 **Author:** [@xr843](https://github.com/xr843) **Created:** 3/12/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/forwarded-allow-ips-v2` --- ### 📝 Commits (1) - [`4fc924c`](https://github.com/open-webui/open-webui/commit/4fc924c9bc46b07fa58595486cb19e613c6c5e82) fix: respect FORWARDED_ALLOW_IPS environment variable in start.sh ### 📊 Changes **1 file changed** (+4 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `backend/start.sh` (+4 -3) </details> ### 📄 Description # Pull Request Checklist - [x] **Target branch:** `dev` - [x] **Description:** Provided below. - [x] **Changelog:** Included below. - [x] **Testing:** Manually verified default behavior unchanged (`*` when env var not set), and custom value is passed when `FORWARDED_ALLOW_IPS` is set. - [x] **Code review:** Self-reviewed, minimal 3-line change. # Changelog Entry ### Description `start.sh` hardcodes `--forwarded-allow-ips '*'` in both the HuggingFace Space path and the main uvicorn startup, ignoring the `FORWARDED_ALLOW_IPS` environment variable documented in `.env.example`. This change reads `FORWARDED_ALLOW_IPS` from the environment with `'*'` as the default fallback. ### Fixed - `FORWARDED_ALLOW_IPS` environment variable is now respected in `start.sh` instead of being hardcoded to `'*'` (fixes #22539) ### Contributor License Agreement - [x] By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-30 02:12:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#49828