fix
This commit is contained in:
parent
a23edd3e7b
commit
7eda3cdd51
|
@ -117,17 +117,19 @@ func main() {
|
||||||
ServerAddress := ":9900"
|
ServerAddress := ":9900"
|
||||||
log.Println("listen on ", ServerAddress)
|
log.Println("listen on ", ServerAddress)
|
||||||
|
|
||||||
keydata, err := os.ReadFile("/opt/server.fusen.3718.cn.key")
|
cert := "/opt/server.fusen.3718.cn.pem"
|
||||||
if err != nil {
|
key := "/opt/server.fusen.3718.cn.key"
|
||||||
panic(err)
|
// keydata, err := os.ReadFile("/opt/server.fusen.3718.cn.key")
|
||||||
}
|
// if err != nil {
|
||||||
|
// panic(err)
|
||||||
|
// }
|
||||||
|
|
||||||
pemdata, err := os.ReadFile("/opt/server.fusen.3718.cn.pem")
|
// pemdata, err := os.ReadFile("/opt/server.fusen.3718.cn.pem")
|
||||||
if err != nil {
|
// if err != nil {
|
||||||
panic(err)
|
// panic(err)
|
||||||
}
|
// }
|
||||||
|
|
||||||
log.Fatal(http.ListenAndServeTLS(ServerAddress, string(pemdata), string(keydata), mux))
|
log.Fatal(http.ListenAndServeTLS(ServerAddress, cert, key, mux))
|
||||||
}
|
}
|
||||||
|
|
||||||
// 后端服务的类型
|
// 后端服务的类型
|
||||||
|
|
Loading…
Reference in New Issue
Block a user