by erdii · 7y ago · 0 comments
Edit: Taken from certmagic docs
Instead of:
// plaintext HTTP, gross
http.ListenAndServe(":80", mux)
Use CertMagic:
// encrypted HTTPS with HTTP->HTTPS redirects - yay!
certmagic.HTTPS([]string{"example.com"}, mux)
No comments yet.