Sfoglia il codice sorgente

Update https_server.go (#194)

ooopus 1 anno fa
parent
commit
1c4240d36f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      server/http_server/https_server.go

+ 1 - 1
server/http_server/https_server.go

@@ -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)
 		}