mirror of https://github.com/gin-gonic/gin.git
feat: listen https.
This commit is contained in:
parent
0cb7cf88cb
commit
2da17294c9
|
@ -28,7 +28,7 @@ func (engine *Engine) RunAutoTLS(domain ...string) (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
s := &http.Server{
|
s := &http.Server{
|
||||||
Addr: ":443",
|
Addr: ":https",
|
||||||
TLSConfig: &tls.Config{GetCertificate: AutoTLSManager.GetCertificate},
|
TLSConfig: &tls.Config{GetCertificate: AutoTLSManager.GetCertificate},
|
||||||
Handler: engine,
|
Handler: engine,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue