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

Specify whether server runs behind reverse proxy #11

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Conversation

mrkvon
Copy link
Member

@mrkvon mrkvon commented Oct 25, 2023

We introduce environment variable BEHIND_PROXY, which should be set to true when the application runs behind reverse proxy. This way protocol gets correctly passed from e.g. nginx to koa via X-Forwarded-Proto header
https://github.com/koajs/koa/blob/dbf4b8f41286befd53dfd802740f2021441435bf/docs/api/request.md#requestprotocol

We introduce variable BEHIND_PROXY, which should be set to true when the
application runs behind reverse proxy. This way protocol gets correctly
passed from nginx to koa via X-Forwarded-Proto
https://github.com/koajs/koa/blob/dbf4b8f41286befd53dfd802740f2021441435bf/docs/api/request.md#requestprotocol
@mrkvon mrkvon merged commit 66af5fb into main Oct 25, 2023
4 checks passed
@mrkvon mrkvon deleted the config-behind-proxy branch October 25, 2023 02:15
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.

1 participant