This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A simple server for HTTPS and HTTP protocols. It implements these behaviors: | |
// | |
// • uses Let's Encrypt to acquire and automatically refresh HTTPS certificates | |
// | |
// • redirects HTTPS requests to canonical hosts, reverse proxies requests to internal backing servers | |
// | |
// • redirects all HTTP requests to HTTPS | |
// | |
// • gates certain endpoints with basic auth, using bcrypt-hashed passwords | |
// |