New Feature: Automatic HTTPS redirects

Who doesn’t love a new feature? It’s now possible to configure HTTP → HTTPS redirects through fly.toml . Enabling it will return a HTTP response with a 301 status code and a redirect to the HTTPS standard port.

  handlers = ["http"]
  port = 80
  force_https = true

An example response

HTTP/1.1 301 Moved Permanently

All in a day’s work!

We’ve designed this feature with the most common use case in mind. It does not support redirecting to custom HTTPS ports, returning a different status code or redirecting specific requests. Our recommendation is to implement these in your application .

Happy HTTPS redirecting!


This is great!
Thank you so much for listening, once again, and shipping features quite fast.

1 Like

Awesome! Thanks Fly team! :tada:

1 Like

That’s very very useful, saved more than a days work!