From fa21c650d289a5729a8b76994f1fa62774c46b68 Mon Sep 17 00:00:00 2001 From: thinkpadmaster Date: Thu, 29 Jun 2023 00:49:48 -0500 Subject: Updated to proper port and TLS settings --- site.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/site.go b/site.go index d45f805..ca919f8 100644 --- a/site.go +++ b/site.go @@ -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 } -- cgit v1.2.3