diff options
author | thinkpadmaster <a.scerba02@gmail.com> | 2023-07-14 01:27:21 -0500 |
---|---|---|
committer | thinkpadmaster <a.scerba02@gmail.com> | 2023-07-14 01:27:21 -0500 |
commit | e9517f33052dbe8f4e7b39a68e323ea96ef09491 (patch) | |
tree | c62e1666fdf4082fce424e15730dd24d966ee13f /main.go | |
parent | 4fbc68c4daff0f4210d42b11dfb3156abad1a258 (diff) |
Add mux to HTTPS
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -44,6 +44,6 @@ func main() { 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.ListenAndServeTLS(":443", "/etc/letsencrypt/live/alexscerba.com/fullchain.pem", "/etc/letsencrypt/live/alexscerba.com/privkey.pem", mux)) //errorLog.Fatal(http.ListenAndServe(":4000", mux)) // for local dev because I'm lazy } |