mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #22607] [CLOSED] fix: use FORWARDED_ALLOW_IPS env var in start.sh instead of hardcoded wildcard #26777
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/22607
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 (line 53) and the main uvicorn startup (line 86), 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.