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

add redirect for correct scheme in location header #35

Open
natbusa opened this issue Sep 11, 2020 · 1 comment
Open

add redirect for correct scheme in location header #35

natbusa opened this issue Sep 11, 2020 · 1 comment

Comments

@natbusa
Copy link

natbusa commented Sep 11, 2020

Upstream relative redirect are incorrectly rewritten when the domain in https
add the following header rewrite rule:

proxy_redirect http:// $scheme://;

@natbusa
Copy link
Author

natbusa commented Sep 11, 2020

A more general idea (untested) could be

proxy_redirect {{ item.value.backend_protocol | default('http') }}://{{ item.key }}_backend $scheme://$host;

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

No branches or pull requests

1 participant