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

Too many redirects behind a reverse proxy in https. #348

Open
Iska13FR opened this issue Jun 24, 2024 · 1 comment
Open

Too many redirects behind a reverse proxy in https. #348

Iska13FR opened this issue Jun 24, 2024 · 1 comment

Comments

@Iska13FR
Copy link

Iska13FR commented Jun 24, 2024

With kobo-install setup, none of the services(kf/kc/ee) are reachable behind a reverse proxy due to an error too many redirects.

After several day of analyse, i finaly found that a config tmpl file for nginx has the wrong value for a variable.

set $redirect_https "O"; shoud be set $redirect_https "OK";

After this modification in the template i was able to restart nginx and all the services were accessible.

@noliveleger
Copy link
Contributor

hello @Iska13FR,

I think your setup is missing something. This configuration "set $redirect_https "O"; is there in purpose and does work correctly with our production setup.

I guess your are using your own reverse proxy and you are not passing http_x_forwarded_proto header with your reverse proxy.

https://github.com/kobotoolbox/kobo-docker/blob/57823c32b9817250c84e55441cb39e5ac7b5a89b/nginx/kobo-docker-scripts/templates/include.https_redirection.conf.tmpl#L25C10-L27

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

2 participants