From 5bbcd3a5cadf9568cf55427e75a48e7ef3ea9063 Mon Sep 17 00:00:00 2001 From: hokamsingh Date: Mon, 2 Sep 2024 23:14:50 +0530 Subject: [PATCH] feat: http config --- internal/core/router/router.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/core/router/router.go b/internal/core/router/router.go index a76f687..cb1e725 100644 --- a/internal/core/router/router.go +++ b/internal/core/router/router.go @@ -372,10 +372,8 @@ func (r *Router) Start(addr string, httpConfig *config.HttpConfig) error { // Set maximum header size MaxHeaderBytes: httpConfig.MaxHeaderSize, } - log.Printf("not here %v %v", httpConfig.TLSCertFile, httpConfig.TLSKeyFile) // Configure TLS if certificates are provided if httpConfig.TLSCertFile != "" && httpConfig.TLSKeyFile != "" { - log.Print("Configure TLS if certificates are provided") server.TLSConfig = &tls.Config{ MinVersion: tls.VersionTLS12, // Example of configuring TLS settings } @@ -389,7 +387,6 @@ func (r *Router) Start(addr string, httpConfig *config.HttpConfig) error { } // Start HTTPS server with TLS - log.Print("here") err := server.ListenAndServeTLS(httpConfig.TLSCertFile, httpConfig.TLSKeyFile) if err != nil { log.Fatalf("HTTPS server failed: %v", err)