Web app only accessible via HTTPS

The http → https rewrite usually happens in the reverse proxy (if you use one) or application hosting layer (fly.io does it). If you run your app without a reverse proxy and on a bare VPS then you need to do it yourself, as @hassanRsiddiqi has mentioned.