From 4497070e813aba2574621778344cec88c61408db Mon Sep 17 00:00:00 2001 From: Supan Adit Pratama Date: Sun, 3 Jan 2021 21:05:51 +0700 Subject: [PATCH] Back to non https config --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 09e0c47..8abcb10 100644 --- a/main.go +++ b/main.go @@ -7,7 +7,6 @@ import ( "github.com/go-redis/redis" "github.com/supanadit/geo-smart-system/system" "log" - "net/http" ) func main() { @@ -21,8 +20,8 @@ func main() { // Call Router system.Router(r, client) // Run Server - // _ = r.Run(fmt.Sprintf(":%s", system.ServerPort)) + _ = r.Run(fmt.Sprintf(":%s", system.ServerPort)) // _ = r.RunTLS(fmt.Sprintf(":%s", system.ServerPort), "./server.crt", "./server.key") - err := http.ListenAndServeTLS(fmt.Sprintf(":%s", system.ServerPort), "cert.pem", "key.pem", nil) + //err := http.ListenAndServeTLS(fmt.Sprintf(":%s", system.ServerPort), "cert.pem", "key.pem", nil) log.Fatal(err) }