diff options
| author | thinkpadmaster <a.scerba02@gmail.com> | 2023-07-14 00:54:08 -0500 |
|---|---|---|
| committer | thinkpadmaster <a.scerba02@gmail.com> | 2023-07-14 00:54:08 -0500 |
| commit | fa518464ebe07694b55bb739fc90e3f460817105 (patch) | |
| tree | 46f68c57ad6fdf26e672f26a9542f5ccfd33a700 | |
| parent | 7201f8e3c3a0d0306a23db0c088769d53bbba301 (diff) | |
Move to "production mode"
| -rw-r--r-- | main.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 } |
