question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE] option redirect_ssl for FastAPI constructor

See original GitHub issue

Is your feature request related to a problem

Redirect all requests to HTTPS.

The solution you would like

Set option redirect_ssl to True and all requests redirect to HTTPS.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
long76commented, May 26, 2020

ASGI servers are not typically used as the user-facing web servers. It is better to have a reverse proxy such as nginx, Traefik, HAPRoxy, Caddy, or Apache in front of your app which manages the SSL.

yeah but Flask support it

1reaction
long76commented, Jun 7, 2020

ok i close issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

About HTTPS - FastAPI
For HTTPS, the server needs to have "certificates" generated by a third party. Those certificates are actually acquired from the third party, not...
Read more >
Advanced Middleware - FastAPI
Enforces that all incoming requests must either be https or wss . Any incoming requests to http or ws will be redirected to...
Read more >
Custom Request and APIRoute class - FastAPI
APIRoute that will make use of the GzipRequest . This time, it will overwrite the method APIRoute.get_route_handler() . This method returns a function....
Read more >
Behind a Proxy - FastAPI
Having a proxy with a stripped path prefix, in this case, means that you could declare a path at /app in your code,...
Read more >
Dependencies - First Steps - FastAPI - tiangolo
Let's first focus on the dependency. It is just a function that can take all the same parameters that a path operation function...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found