summaryrefslogtreecommitdiff
path: root/system/tls/enable.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-24 15:42:35 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-24 15:42:35 -0700
commit5d7ac0a00e9f4c33e095be9be4d79ae302c0c4c4 (patch)
treedbf226a46cf426bd73bbf77ff1e0773ce12f8e14 /system/tls/enable.go
parent30d20c99a641dcd685221d6ddfa1e101f7672d1b (diff)
removing debug printlns and modifying other fmt.Println to log.Println for consistency
Diffstat (limited to 'system/tls/enable.go')
-rw-r--r--system/tls/enable.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/tls/enable.go b/system/tls/enable.go
index 4be0aa8..c53fac6 100644
--- a/system/tls/enable.go
+++ b/system/tls/enable.go
@@ -2,6 +2,7 @@ package tls
import (
"crypto/tls"
+ "fmt"
"log"
"net/http"
"os"
@@ -41,6 +42,8 @@ func setup() {
if host == nil {
log.Fatalln("No 'domain' field set in Configuration. Please add a domain before attempting to make certificates.")
}
+ fmt.Println("Using", host, "as host/domain for certificate...")
+ fmt.Println("NOTE: if the host/domain is not configured properly or is unreachable, HTTPS set-up will fail.")
email, err := db.Config("admin_email")
if err != nil {
@@ -50,6 +53,7 @@ func setup() {
if email == nil {
log.Fatalln("No 'admin_email' field set in Configuration. Please add an admin email before attempting to make certificates.")
}
+ fmt.Println("Using", email, "as contact email for certificate...")
m = autocert.Manager{
Prompt: autocert.AcceptTOS,
@@ -71,4 +75,5 @@ func Enable() {
}
go log.Fatalln(server.ListenAndServeTLS("", ""))
+ fmt.Println("Server listening for HTTPS requests...")
}