mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #22608] [CLOSED] fix: respect FORWARDED_ALLOW_IPS environment variable in start.sh #42408
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22608
Author: @xr843
Created: 3/12/2026
Status: ❌ Closed
Base:
main← Head:fix/forwarded-allow-ips-env📝 Commits (1)
613a754fix: use FORWARDED_ALLOW_IPS env var instead of hardcoded wildcard in start.sh📊 Changes
1 file changed (+3 additions, -2 deletions)
View changed files
📝
backend/start.sh(+3 -2)📄 Description
Summary
start.shhardcodes--forwarded-allow-ips '*'in both the HuggingFace Space path and the main uvicorn startup, ignoring theFORWARDED_ALLOW_IPSenvironment variable documented in.env.exampleFORWARDED_ALLOW_IPSfrom the environment with'*'as the default fallback, preserving full backward compatibility while allowing users to restrict forwarded IPs as intendedFixes #22539
Test plan
*when env var not set)FORWARDED_ALLOW_IPS=127.0.0.1and verify uvicorn uses the custom value🤖 Generated with Claude Code
contributor license agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.