summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-28 16:12:49 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-28 16:12:49 -0800
commit5c340ca57e876a556a5b57e5a7dd32b0ae288440 (patch)
treedacaed91abb57bc6891c1b2cb58a82fc0c9610fc /cmd
parent8e5aca003ca90e65b9812a4a826a5f8b768b59bb (diff)
moving dev notes in run command to main
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ponzu/main.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/ponzu/main.go b/cmd/ponzu/main.go
index 9ffb433..440ce70 100644
--- a/cmd/ponzu/main.go
+++ b/cmd/ponzu/main.go
@@ -174,10 +174,18 @@ func main() {
// cannot run production HTTPS and development HTTPS together
if devhttps {
fmt.Println("Enabling self-signed HTTPS... [DEV]")
+
go tls.EnableDev()
+ fmt.Println("Server listening on https://localhost:10443 for requests... [DEV]")
+ fmt.Println("----")
+ fmt.Println("If your browser rejects HTTPS requests, try allowing insecure connections on localhost.")
+ fmt.Println("on Chrome, visit chrome://flags/#allow-insecure-localhost")
+
} else if https {
fmt.Println("Enabling HTTPS...")
+
go tls.Enable()
+ fmt.Println("Server listening on :443 for HTTPS requests...")
}
// save the port the system is listening on so internal system can make