Use RunTLS() to serve TLS.
This commit is contained in:
parent
41c384c7aa
commit
23a02b95d9
2
main.go
2
main.go
@ -40,7 +40,7 @@ func main() {
|
|||||||
gin.SetMode(gin.ReleaseMode)
|
gin.SetMode(gin.ReleaseMode)
|
||||||
log.Println("Starting in release mode")
|
log.Println("Starting in release mode")
|
||||||
log.Println("Starting service with TLS")
|
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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user