diff --git a/config/config.go b/config/config.go index ad7e4df..573bcb5 100644 --- a/config/config.go +++ b/config/config.go @@ -11,7 +11,7 @@ type Config struct { GitHubTokens []string `env:"GITHUB_TOKENS"` GitHubPageSize int `env:"GITHUB_PAGE_SIZE" envDefault:"100"` GitHubMaxRateUsagePct int `env:"GITHUB_MAX_RATE_LIMIT_USAGE" envDefault:"80"` - Port string `env:"PORT" envDefault:"3000"` + Listen string `env:"LISTEN" envDefault:"127.0.0.1:3000"` } // Get the current Config. diff --git a/main.go b/main.go index 1578025..81d306b 100644 --- a/main.go +++ b/main.go @@ -80,9 +80,9 @@ func main() { ), ), ), - Addr: "127.0.0.1:" + config.Port, - WriteTimeout: 30 * time.Second, - ReadTimeout: 30 * time.Second, + Addr: config.Listen, + WriteTimeout: 60 * time.Second, + ReadTimeout: 60 * time.Second, } ctx.Info("starting up...") ctx.WithError(srv.ListenAndServe()).Error("failed to start up server")