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

fix: disable absolute redirects #12

Merged
merged 1 commit into from
Jan 30, 2024
Merged

fix: disable absolute redirects #12

merged 1 commit into from
Jan 30, 2024

Conversation

ctrox
Copy link
Contributor

@ctrox ctrox commented Jan 30, 2024

nginx will automatically redirect to paths with a trailing slash it is missing. But this lead to issues where nginx would redirect from HTTPS back to HTTP if it's running behind a proxy which already terminates TLS. As a workaround we configure nginx to do relative redirects that don't contain the scheme.

nginx will automatically redirect to paths with a trailing slash it
is missing. But this lead to issues where nginx would redirect from
HTTPS back to HTTP if it's running behind a proxy which already
terminates TLS. As a workaround we configure nginx to do relative
redirects that don't contain the scheme.
Copy link

@thirdeyenick thirdeyenick left a comment

Choose a reason for hiding this comment

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

Looks good

@ctrox ctrox merged commit cf133a4 into main Jan 30, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants