🔥 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