Rollback to old version without AutoTLS

This commit is contained in:
Supan Adit Pratama 2020-11-24 11:43:27 +07:00
parent 19cf1f4ad7
commit 91d3b6edfb

View File

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