Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XFF_DEPTH_ENV #4357

Merged
merged 4 commits into from
Mar 16, 2022
Merged

XFF_DEPTH_ENV #4357

merged 4 commits into from
Mar 16, 2022

Conversation

Rich-Harris
Copy link
Member

suggested changes to #4332 (cc @benmccann)

@@ -18,6 +18,7 @@ export default function ({
host: host_env = 'HOST',
port: port_env = 'PORT',
origin: origin_env = 'ORIGIN',
xffDepth: xff_depth_env = 'XFF_DEPTH',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No objections to this because I know it's consistent with the others, but it really seems unnecessary

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guess the question becomes 'why is it necessary for the others but not this?' and if it isn't necessary for the others, then why do we need to make the env vars configurable at all?

@changeset-bot
Copy link

changeset-bot bot commented Mar 16, 2022

⚠️ No Changeset found

Latest commit: cad6e94

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@Rich-Harris Rich-Harris merged commit 09b1f45 into xForwardedForNumProxies Mar 16, 2022
@Rich-Harris Rich-Harris deleted the xff-depth branch March 16, 2022 18:27
Rich-Harris added a commit that referenced this pull request Mar 16, 2022
* [breaking] rename xForwardedForIndex to xForwardedForNumProxies

* add back link to blog post

* changeset

* update based on code review

* update changeset

* XFF_DEPTH_ENV (#4357)

* use XFF_DEPTH_ENV

* get rid of get_xff_depth

* typo

* Update packages/adapter-node/README.md

Co-authored-by: Maurício Kishi <mrkishi@users.noreply.github.com>

* Update packages/adapter-node/README.md

* Update README.md

* overhaul readme

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
Co-authored-by: Maurício Kishi <mrkishi@users.noreply.github.com>
Co-authored-by: Rich Harris <hello@rich-harris.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants