-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(node): add
PORT_HEADER
env var for reverse proxies with non-st…
…andard ports (#11249) * feat: add `PORT_HEADER` env var for reverse proxies with non-standard ports Add support for the `PORT_HEADER` environment variable, that can be used to read the original port of a request from a reverse proxy, which is needed if the reverse proxy is hosted on a non-standard port (e.g. not port 80 for http nor port 443 for https). This port is normally added as part of a [`x-forwarded-port`][1], which is used by many reverse proxies, although it's not as popular as the more common [`x-forwarded-proto`][2] and [`x-forwarded-host`][3] headers. [1]: https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/x-forwarded-headers.html#x-forwarded-port [2]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto [3]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host * fixup! feat: add `PORT_HEADER` env var for reverse proxies with non-standard ports Remove link to AWS docs.
- Loading branch information
1 parent
9556aba
commit e2504f1
Showing
4 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/adapter-node': minor | ||
--- | ||
|
||
feat: add `PORT_HEADER` env var for reverse proxies with non-standard ports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters