config: remove references to named ports

- Go 1.12.8 changed the way url parse handles service named ports.

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
Bobby DeSimone 2019-08-14 13:34:48 -07:00
parent b3fa7023f6
commit 1bfb64ed31
No known key found for this signature in database
GPG key ID: AEE4CF12FE86D07E
5 changed files with 17 additions and 15 deletions

View file

@ -10,7 +10,7 @@ import (
// ServerOptions contains the configurations settings for a http server.
type ServerOptions struct {
// Addr specifies the host and port on which the server should serve
// HTTPS requests. If empty, ":https" is used.
// HTTPS requests. If empty, ":443" is used.
Addr string
// TLS certificates to use.
@ -27,7 +27,7 @@ type ServerOptions struct {
}
var defaultTLSServerOptions = &ServerOptions{
Addr: ":https",
Addr: ":443",
CertFile: filepath.Join(fileutil.Getwd(), "cert.pem"),
KeyFile: filepath.Join(fileutil.Getwd(), "privkey.pem"),
ReadHeaderTimeout: 10 * time.Second,
@ -61,7 +61,7 @@ func (o *ServerOptions) applyTLSDefaults() {
}
var defaultHTTPServerOptions = &ServerOptions{
Addr: ":http",
Addr: ":80",
ReadHeaderTimeout: 10 * time.Second,
ReadTimeout: 5 * time.Second,
WriteTimeout: 5 * time.Second,