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)) }