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

Analog to uvicorn/gunicorn --forwarded-allow-ips #195

Open
pohmelie opened this issue Feb 26, 2024 · 2 comments
Open

Analog to uvicorn/gunicorn --forwarded-allow-ips #195

pohmelie opened this issue Feb 26, 2024 · 2 comments

Comments

@pohmelie
Copy link

We faced with http/https redirect issue. So, the http hypercorn server is behind the nginx https server and redirection is going to http schema. More details here: https://stackoverflow.com/questions/63511413/fastapi-redirection-for-trailing-slash-returns-non-ssl-link

@pgjones
Copy link
Owner

pgjones commented May 28, 2024

Does the Proxy fix middleware solve this?

@pohmelie
Copy link
Author

I think the answer is «probably» because I can't test it right now. We moved out of any fastapi redirections and forbid them, so the problem gone. Maybe this can be closed, not sure. 🤔

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