From 91d3b6edfbdd647dabe9362d8a9c8f674a0cc041 Mon Sep 17 00:00:00 2001 From: Supan Adit Pratama Date: Tue, 24 Nov 2020 11:43:27 +0700 Subject: [PATCH] Rollback to old version without AutoTLS --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 89e1453..f4826a7 100644 --- a/main.go +++ b/main.go @@ -1,8 +1,8 @@ package main import ( + "fmt" "github.com/gin-contrib/cors" - "github.com/gin-gonic/autotls" "github.com/gin-gonic/gin" "github.com/go-redis/redis" "github.com/supanadit/geo-smart-system/system" @@ -19,5 +19,5 @@ func main() { // Call Router system.Router(r, client) // Run Server - _ = autotls.Run(r, "api.geosmart.supanadit.com") + _ = r.Run(fmt.Sprintf(":%s", system.ServerPort)) }