aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorthinkpadmaster <a.scerba02@gmail.com>2023-07-14 01:27:21 -0500
committerthinkpadmaster <a.scerba02@gmail.com>2023-07-14 01:27:21 -0500
commite9517f33052dbe8f4e7b39a68e323ea96ef09491 (patch)
treec62e1666fdf4082fce424e15730dd24d966ee13f /main.go
parent4fbc68c4daff0f4210d42b11dfb3156abad1a258 (diff)
Add mux to HTTPS
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index f85170a..da578e4 100644
--- a/main.go
+++ b/main.go
@@ -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
}