Skip to content

Commit 49f4433

Browse files
committed
Remove Hostname ENV variable
1 parent 9cbe0b7 commit 49f4433

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ var config struct {
3232
CacheExpiredPurge int `env:"CACHE_EXPIRED_PURGE" envDefault:"60"`
3333
Environment string `env:"ENVIRONMENT" envDefault:"develop"`
3434
Port int `env:"PORT" envDefault:"8080"`
35-
APIHostname string `env:"API_HOSTNAME" envDefault:"http://localhost"`
3635
}
3736

3837
func main() {
@@ -108,7 +107,7 @@ func main() {
108107
w.Write([]byte("nothing to see here"))
109108
})
110109

111-
l.Log("msg", fmt.Sprintf("feedbridge listening on %s:%d", config.APIHostname, config.Port))
110+
l.Log("msg", fmt.Sprintf("feedbridge listening on http://localhost:%d", config.Port))
112111
err = http.ListenAndServe(fmt.Sprintf(":%d", config.Port), r)
113112
if err != nil {
114113
panic(err)

0 commit comments

Comments
 (0)