diff options
| author | thinkpadmaster <a.scerba02@gmail.com> | 2023-06-29 00:49:48 -0500 |
|---|---|---|
| committer | thinkpadmaster <a.scerba02@gmail.com> | 2023-06-29 00:49:48 -0500 |
| commit | fa21c650d289a5729a8b76994f1fa62774c46b68 (patch) | |
| tree | 1fec69563086c76183ef84e0106f02e62a69ccee | |
| parent | fdb362a9f611a44f7d902ab75c0bb041feff02e6 (diff) | |
Updated to proper port and TLS settings
| -rw-r--r-- | site.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -222,6 +222,7 @@ func main() { http.HandleFunc("/about/", aboutHandler) http.HandleFunc("/", rootHandler) - //go http.ListenAndServe(":8080", http.HandlerFunc(httpsRedirect)) - log.Fatal(http.ListenAndServe(":4000", nil)) + go http.ListenAndServe(":80", http.HandlerFunc(httpsRedirect)) + log.Fatal(http.ListenAndServeTLS(":443", "/etc/letsencrypt/live/alexscerba.com/fullchain.pem", "/etc/letsencrypt/live/alexscerba.com/privkey.pem", nil)) + //log.Fatal(http.ListenAndServe(":4000", nil)) // for local dev because I'm lazy } |
