Can use TLS manually

This commit is contained in:
Supan Adit Pratama 2020-11-24 11:46:42 +07:00
parent 91d3b6edfb
commit 37b10df949

View File

@ -19,5 +19,6 @@ 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")
}