diff options
author | Steve <nilslice@gmail.com> | 2016-10-24 16:13:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-24 16:13:04 -0700 |
commit | a18e708ffba7ea6fb1f4d418048165fbb5672c29 (patch) | |
tree | c21b72d8c168be1257a990c5d711206d3d2d3a15 /system/tls/enable.go | |
parent | 737a3f796b87c0ee8236ef949fff81e2238fc071 (diff) | |
parent | 2fd308a18701d8d9da9f86480eabdc5c367e2f5c (diff) |
Merge pull request #8 from bosssauce/ponzu-dev
[core] User management
Diffstat (limited to 'system/tls/enable.go')
-rw-r--r-- | system/tls/enable.go | 5 |
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...") } |