aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/blogspace/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/blogspace/main.go b/cmd/blogspace/main.go
index 20e6ffe..26689bc 100644
--- a/cmd/blogspace/main.go
+++ b/cmd/blogspace/main.go
@@ -172,7 +172,10 @@ func serve(ctx context.Context, cfg *config.Config, st *store.Store) error {
}
errc := make(chan error, 1)
go func() { errc <- srv.ListenAndServe() }()
- log.Printf("listening on %s — dashboard at %s, blogs at http://<name>.%s (dev=%v)", cfg.Addr, cfg.RootURL(), cfg.HostWithPort(), cfg.Dev)
+ if !cfg.Dev && !cfg.HTTPS {
+ log.Printf("warning: HTTPS is off — the session cookie is not Secure and links are http://; set HTTPS=true behind a TLS proxy")
+ }
+ log.Printf("listening on %s — dashboard at %s, blogs at %s://<name>.%s (dev=%v)", cfg.Addr, cfg.RootURL(), cfg.Scheme(), cfg.HostWithPort(), cfg.Dev)
select {
case err := <-errc:
return err