mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #22564] [CLOSED] fix: respect FORWARDED_ALLOW_IPS env var instead of hardcoding '*' in start scripts #49805
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/22564
Author: @NIK-TIGER-BILL
Created: 3/11/2026
Status: ❌ Closed
Base:
main← Head:fix/forwarded-allow-ips-env-var-ignored📝 Commits (1)
12c3088fix: respect FORWARDED_ALLOW_IPS env var instead of hardcoding '*' in start scripts📊 Changes
2 files changed (+5 additions, -4 deletions)
View changed files
📝
backend/start.sh(+2 -2)📝
backend/start_windows.bat(+3 -2)📄 Description
Problem
backend/start.shandbackend/start_windows.batboth hardcode--forwarded-allow-ips '*', ignoring theFORWARDED_ALLOW_IPSenvironment variable entirely (closes #22539).This affects operators running Open WebUI behind a trusted reverse proxy who want to restrict which upstream IPs are allowed to set forwarded headers — e.g.:
With the hardcoded
'*', every host is unconditionally trusted regardless of this setting.Fix
backend/start.shUse shell parameter expansion with default:
backend/start_windows.batSet a default value then reference the variable:
Both changes are backwards-compatible: if
FORWARDED_ALLOW_IPSis not set,*is used as the default, preserving the existing behaviour.Closes #22539
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.