mirror of
https://github.com/aljazceru/satdress.git
synced 2025-12-17 05:24:20 +01:00
add SITE_OWNER.
This commit is contained in:
3
main.go
3
main.go
@@ -23,6 +23,7 @@ type Settings struct {
|
||||
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+"<p>offered by %s</p>", s.SiteOwner)
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user