mirror of
https://github.com/labstack/echo.git
synced 2025-01-12 01:22:21 +02:00
Using tls-alpn for auto tls
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
ba1891b3dc
commit
ba46ff80a4
4
echo.go
4
echo.go
@ -619,10 +619,6 @@ func (e *Echo) StartTLS(address string, certFile, keyFile string) (err error) {
|
||||
|
||||
// StartAutoTLS starts an HTTPS server using certificates automatically installed from https://letsencrypt.org.
|
||||
func (e *Echo) StartAutoTLS(address string) error {
|
||||
if e.Listener == nil {
|
||||
go http.ListenAndServe(":http", e.AutoTLSManager.HTTPHandler(nil))
|
||||
}
|
||||
|
||||
s := e.TLSServer
|
||||
s.TLSConfig = new(tls.Config)
|
||||
s.TLSConfig.GetCertificate = e.AutoTLSManager.GetCertificate
|
||||
|
Loading…
Reference in New Issue
Block a user