I came across the post at Always Be Connecting (with HTTPS) · Fly for doing HTTPS redirects, but I wanted to know if there was a simple way to do HTTPS redirects using my own domain/certificate for the static builtin? I set up the domain using A and AAAA records.
Try this in your fly.toml
[build]
builtin = "static"
[build.settings]
httpsonly = true
That should work fine with any domain.
That did it!
Is this documented somewhere? Not sure where I would have found this.
It is not well documented, I only knew because I looked at the source code.
Bear with us, we should have improvements to this kind of thing in the next few months (and docs!).
1 Like