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

Check x-forwarded-host before host for support reverse proxy defaults #4928

Merged
merged 8 commits into from
Feb 24, 2021

Conversation

MurzNN
Copy link
Contributor

@MurzNN MurzNN commented Feb 23, 2021

Default setup of reverse proxies is to pass real host into x-forwarded-host key, with leaving host untouched.
For not require special changes of reverse proxy settings to Keystone-next, I propose to check the x-forwarded-host before host.
Resolves #4902.

Default setup of reverse proxies is to pass real host into
`x-forwarded-host` key, with leaving `host` untouched.
For not require special changes of reverse proxy settings
to Keystone-next, I suggest to check it before `host`.
@changeset-bot
Copy link

changeset-bot bot commented Feb 23, 2021

🦋 Changeset detected

Latest commit: edd133c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@keystone-next/auth Minor

Not sure what this means? Click here to learn what changesets are.

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

@vercel
Copy link

vercel bot commented Feb 23, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/keystonejs/keystone-next-docs/9K55xXRaDyRZfkY3nxXMM5tm6vaE
✅ Preview: https://keystone-next-git-fork-murznn-init-with-reverse-proxy-k-8eea2d.vercel.app

@vercel vercel bot temporarily deployed to Preview February 23, 2021 12:15 Inactive
@vercel vercel bot temporarily deployed to Preview February 23, 2021 12:27 Inactive
Copy link
Contributor

@timleslie timleslie left a comment

Choose a reason for hiding this comment

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

Looks like a good fix, just a few changes to clean up the PR 👍

packages-next/auth/src/index.ts Outdated Show resolved Hide resolved
.changeset/fast-meals-ring.md Outdated Show resolved Hide resolved
.changeset/fast-meals-ring.md Outdated Show resolved Hide resolved
Co-authored-by: Tim Leslie <[email protected]>
@vercel vercel bot temporarily deployed to Preview February 24, 2021 05:49 Inactive
@vercel vercel bot temporarily deployed to Preview February 24, 2021 05:53 Inactive
@vercel vercel bot temporarily deployed to Preview February 24, 2021 06:11 Inactive
Copy link
Contributor

@timleslie timleslie left a comment

Choose a reason for hiding this comment

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

This all looks good now, thanks for the PR 🙏

@vercel vercel bot temporarily deployed to Preview February 24, 2021 20:56 Inactive
@timleslie timleslie enabled auto-merge (squash) February 24, 2021 20:56
@timleslie timleslie merged commit 884129f into keystonejs:master Feb 24, 2021
ghost pushed a commit to strativd/building-habits that referenced this pull request Aug 13, 2021
@ghost ghost mentioned this pull request Aug 13, 2021
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.

Keystone-next Admin UI refresh loop on nginx reverse proxy
2 participants