From fc51643434c5eef8417a62b9f83fec3823c393ec Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Wed, 4 Jan 2017 10:27:10 -0800 Subject: adding httpsport and https_port to flags and config --- system/tls/enable.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'system/tls/enable.go') diff --git a/system/tls/enable.go b/system/tls/enable.go index c6f65b3..f9c16d8 100644 --- a/system/tls/enable.go +++ b/system/tls/enable.go @@ -10,7 +10,6 @@ import ( "time" "github.com/ponzu-cms/ponzu/system/db" - "golang.org/x/crypto/acme/autocert" ) @@ -71,7 +70,7 @@ func Enable() { setup() server := &http.Server{ - Addr: ":443", + Addr: fmt.Sprintf(":%s", db.ConfigCache("https_port")), TLSConfig: &tls.Config{GetCertificate: m.GetCertificate}, } -- cgit v1.2.3