Skip to content

v2.3.0

Compare
Choose a tag to compare
@Fenny Fenny released this 16 Dec 02:12
f894140

🔥 New

app.ListenTLS(":443", "./cert.pem", "./cert.key");

Allows you to serve HTTPs requests by providing a path to the TLS certificate and key file, this is a simplified method for app.Listener() where you had to build your own *tls.Config. #1077

The following *tls.Config is used:

&tls.Config{
	MinVersion:               tls.VersionTLS12,
	PreferServerCipherSuites: true,
	Certificates: []tls.Certificate{
		cert,
	},
}

More information about Listen methods can be found here https://docs.gofiber.io/api/app#listentls

Thank you @kiyonlin & @HeCorr