Explorar o código

Update https_server.go (#194)

ooopus hai 1 ano
pai
achega
1c4240d36f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,
 			WriteTimeout: time.Second * 90,
 			ErrorLog:     nullLog,
 			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 {
 		if err != nil {
 			panic(err)
 			panic(err)
 		}
 		}