From 3bb1c405e984d442d06ccd054f130194acc807df Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 13 Aug 2021 22:21:54 -0300 Subject: [PATCH] add SITE_OWNER. --- main.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 252afee..099dc34 100644 --- a/main.go +++ b/main.go @@ -19,10 +19,11 @@ import ( ) type Settings struct { - Host string `envconfig:"HOST" default:"0.0.0.0"` - Port string `envconfig:"PORT" required:"true"` - Domain string `envconfig:"DOMAIN" required:"true"` - Secret string `envconfig:"SECRET" required:"true"` + Host string `envconfig:"HOST" default:"0.0.0.0"` + Port string `envconfig:"PORT" required:"true"` + Domain string `envconfig:"DOMAIN" required:"true"` + Secret string `envconfig:"SECRET" required:"true"` + SiteOwner string `envconfig:"SITE_OWNER" required:"true"` } var s Settings @@ -50,7 +51,7 @@ func main() { router.Path("/").HandlerFunc( func(w http.ResponseWriter, r *http.Request) { w.Header().Set("content-type", "text/html") - fmt.Fprintf(w, html) + fmt.Fprintf(w, html+"

offered by %s

", s.SiteOwner) }, )