Skip to content

Add environment variable control for trust proxy setting#5226

Merged
HenryHengZJ merged 8 commits intomainfrom
feature/trust-proxy-env-config
Sep 27, 2025
Merged

Add environment variable control for trust proxy setting#5226
HenryHengZJ merged 8 commits intomainfrom
feature/trust-proxy-env-config

Conversation

@chungyau97
Copy link
Contributor

@chungyau97 chungyau97 commented Sep 17, 2025

Description

This PR adds the ability to configure Express's trust proxy setting through an environment variable. By default, the setting remains true to maintain backward compatibility, but can now be explicitly disabled by setting TRUST_PROXY=false in the environment.

Documentation

image

Test

The console logging of trust proxy info won’t be included in the PR, it was just for me to verify the results.

TRUST_PROXY = undefined TRUST_PROXY = true TRUST_PROXY = false TRUST_PROXY = 3 TRUST_PROXY = loopback TRUST_PROXY = loopback, linklocal, 123.123.123.123
undefined true false number string csv

Enterprise
image

Cloud
image

@HenryHengZJ
Copy link
Contributor

@hob is good with the changes

@HenryHengZJ HenryHengZJ merged commit b5da234 into main Sep 27, 2025
2 checks passed
@chungyau97 chungyau97 deleted the feature/trust-proxy-env-config branch September 29, 2025 03:19
erhhung pushed a commit to erhhung/flowise that referenced this pull request Oct 5, 2025
)

* feat: allow trust proxy setting to be configured via environment variable

* fix: restore HTTP_DENY_LIST in .env.example after merge conflict

* feat: add conditional handling for trust proxy

* feat: add trust proxy environment variable documentation

* feat: add trust proxy environment variable sample value

* fix: handle empty trust proxy string in docker environment

---------

Co-authored-by: Henry Heng <henryheng@flowiseai.com>
erhhung pushed a commit to erhhung/flowise that referenced this pull request Jan 23, 2026
)

* feat: allow trust proxy setting to be configured via environment variable

* fix: restore HTTP_DENY_LIST in .env.example after merge conflict

* feat: add conditional handling for trust proxy

* feat: add trust proxy environment variable documentation

* feat: add trust proxy environment variable sample value

* fix: handle empty trust proxy string in docker environment

---------

Co-authored-by: Henry Heng <henryheng@flowiseai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants