From fa518464ebe07694b55bb739fc90e3f460817105 Mon Sep 17 00:00:00 2001 From: thinkpadmaster <a.scerba02@gmail.com> Date: Fri, 14 Jul 2023 00:54:08 -0500 Subject: Move to "production mode" --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 296cae2..f85170a 100644 --- a/main.go +++ b/main.go @@ -43,7 +43,7 @@ func main() { mux.HandleFunc("/", app.home) infoLog.Println("Starting server...") - //go http.ListenAndServe(":80", http.HandlerFunc(app.httpsRedirect)) - //errorLog.Fatal(http.ListenAndServeTLS(":443", "/etc/letsencrypt/live/alexscerba.com/fullchain.pem", "/etc/letsencrypt/live/alexscerba.com/privkey.pem", nil)) - errorLog.Fatal(http.ListenAndServe(":4000", mux)) // for local dev because I'm lazy + go http.ListenAndServe(":80", http.HandlerFunc(app.httpsRedirect)) + errorLog.Fatal(http.ListenAndServeTLS(":443", "/etc/letsencrypt/live/alexscerba.com/fullchain.pem", "/etc/letsencrypt/live/alexscerba.com/privkey.pem", nil)) + //errorLog.Fatal(http.ListenAndServe(":4000", mux)) // for local dev because I'm lazy } -- cgit v1.2.3