diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-04 10:27:10 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-04 10:27:10 -0800 |
commit | fc51643434c5eef8417a62b9f83fec3823c393ec (patch) | |
tree | cc14f61b15c0b7e88608f30c4a82b35ccb92b660 /system/tls/enable.go | |
parent | 76ae3f53e0c294f13c15fccd9be89ec472a8deee (diff) |
adding httpsport and https_port to flags and config
Diffstat (limited to 'system/tls/enable.go')
-rw-r--r-- | system/tls/enable.go | 3 |
1 files changed, 1 insertions, 2 deletions
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}, } |