Use RunTLS() to serve TLS.

This commit is contained in:
Marco 2023-06-06 23:23:28 +02:00
parent 41c384c7aa
commit 23a02b95d9

View File

@ -40,7 +40,7 @@ func main() {
gin.SetMode(gin.ReleaseMode)
log.Println("Starting in release mode")
log.Println("Starting service with TLS")
log.Fatal(router.Run("chess.sw-gross.de:9999"))
log.Fatal(router.RunTLS("chess.sw-gross.de:9999", cert_file, key_file))
}
}