mirror of
https://github.com/supanadit/geo-smart-system.git
synced 2024-11-10 01:52:24 +00:00
Change to built in http
This commit is contained in:
parent
37b10df949
commit
db576e7c1e
6
main.go
6
main.go
@ -6,6 +6,8 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/go-redis/redis"
|
||||
"github.com/supanadit/geo-smart-system/system"
|
||||
"log"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@ -20,5 +22,7 @@ func main() {
|
||||
system.Router(r, client)
|
||||
// Run Server
|
||||
// _ = r.Run(fmt.Sprintf(":%s", system.ServerPort))
|
||||
_ = r.RunTLS(fmt.Sprintf(":%s", system.ServerPort), "./server.crt", "./server.key")
|
||||
// _ = r.RunTLS(fmt.Sprintf(":%s", system.ServerPort), "./server.crt", "./server.key")
|
||||
err := http.ListenAndServeTLS(fmt.Sprintf(":%s", system.ServerPort), "cert.pem", "key.pem", nil)
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user