aboutsummaryrefslogtreecommitdiff
path: root/site.go
diff options
context:
space:
mode:
authorthinkpadmaster <a.scerba02@gmail.com>2023-06-29 00:49:48 -0500
committerthinkpadmaster <a.scerba02@gmail.com>2023-06-29 00:49:48 -0500
commitfa21c650d289a5729a8b76994f1fa62774c46b68 (patch)
tree1fec69563086c76183ef84e0106f02e62a69ccee /site.go
parentfdb362a9f611a44f7d902ab75c0bb041feff02e6 (diff)
Updated to proper port and TLS settings
Diffstat (limited to 'site.go')
-rw-r--r--site.go5
1 files 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
}