Update https_server.go (#194)

This commit is contained in:
ooopus 2024-08-30 07:36:44 +08:00 committed by GitHub
parent 2bf2635a40
commit 1c4240d36f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,7 @@ func HttpsStart() {
WriteTimeout: time.Second * 90,
ErrorLog: nullLog,
}
err := httpsServer.ListenAndServeTLS("config/ssl/public.crt", "config/ssl/private.key")
err := httpsServer.ListenAndServeTLS(config.Instance.SSLPublicKeyPath, config.Instance.SSLPrivateKeyPath)
if err != nil {
panic(err)
}