I’m new to using Vapor and just got my first server working. I’m creating a Docker image that I then pull down on my server (running on Linode) to run. The next step for the server is to enable HTTPS by getting a certificate. I’m assuming the easiest way to do that would be to use Let’s Encrypt, putting a
cron job on the server to automatically rotate the certificates monthly or so.
What’s the best way to get my Vapor site to a) support HTTPS using this certificate, and b) require HTTPS, automatically upgrading non-secure requests? Or is that even Vapor's domain—is this a Docker setting instead?
Thanks in advance.