[PR #22555] [CLOSED] fix: respect FORWARDED_ALLOW_IPS env var in start.sh #49802

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

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/22555
Author: @alvinttang
Created: 3/11/2026
Status: Closed

Base: mainHead: fix/forwarded-allow-ips-env


📝 Commits (1)

  • 6779603 fix: respect FORWARDED_ALLOW_IPS env var in start.sh

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 backend/start.sh (+2 -2)

📄 Description

Summary

  • Replace hardcoded --forwarded-allow-ips '*' with --forwarded-allow-ips "${FORWARDED_ALLOW_IPS:-*}" in backend/start.sh
  • The FORWARDED_ALLOW_IPS environment variable is now respected, with * as the default for backward compatibility
  • Fixes both the main uvicorn launch (line 86) and the HuggingFace Space admin setup launch (line 53)

Fixes #22539

Test plan

  • Set FORWARDED_ALLOW_IPS to a specific IP (e.g., 127.0.0.1) and verify uvicorn starts with that value
  • Leave FORWARDED_ALLOW_IPS unset and verify uvicorn defaults to * (backward compatible)

contributor license agreement

🤖 Generated with Claude Code


🔄 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/22555 **Author:** [@alvinttang](https://github.com/alvinttang) **Created:** 3/11/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/forwarded-allow-ips-env` --- ### 📝 Commits (1) - [`6779603`](https://github.com/open-webui/open-webui/commit/6779603ab9ef9126cb69a48b8eb7c047c537251d) fix: respect FORWARDED_ALLOW_IPS env var in start.sh ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `backend/start.sh` (+2 -2) </details> ### 📄 Description ## Summary - Replace hardcoded `--forwarded-allow-ips '*'` with `--forwarded-allow-ips "${FORWARDED_ALLOW_IPS:-*}"` in `backend/start.sh` - The `FORWARDED_ALLOW_IPS` environment variable is now respected, with `*` as the default for backward compatibility - Fixes both the main uvicorn launch (line 86) and the HuggingFace Space admin setup launch (line 53) Fixes #22539 ## Test plan - [ ] Set `FORWARDED_ALLOW_IPS` to a specific IP (e.g., `127.0.0.1`) and verify uvicorn starts with that value - [ ] Leave `FORWARDED_ALLOW_IPS` unset and verify uvicorn defaults to `*` (backward compatible) contributor license agreement 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <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:09:07 -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#49802