Redirect HTTP to HTTPS
When not provisioning Let’s Encrypt certificates (“in challenge server mode”), Auto Encrypt should forward HTTP requests received on port 80 to HTTPS.
Suggested implementation
- Rename ChallengeServer to HttpServer
- HttpServer should have two modes: challenge server mode (works as before) and HTTP → HTTPS redirect mode (the default mode)
- HttpServer should be started when the HTTPS server is started and shut down when the HTTPS is shut down.
Also see: site.js/app#195 (closed)