pgjones / hypercorn

Hypercorn is an ASGI and WSGI Server based on Hyper libraries and inspired by Gunicorn.
MIT License
1.1k stars 101 forks source link

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

Open pohmelie opened 6 months ago

pohmelie commented 6 months ago

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 commented 3 months ago

Does the Proxy fix middleware solve this?

pohmelie commented 3 months ago

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. 🤔