refactor: adjust defaults (#4137)

* refactor: adjust defaults

* refactor: adjust level

* refactor: adjust level

* refactor: fix templates
pull/4139/head
James Elliott 2022-10-07 13:52:01 +11:00 committed by GitHub
parent a059843dff
commit 3107e493e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 19 additions and 19 deletions

View File

@ -96,10 +96,10 @@ server:
# timeouts:
## Read timeout.
# read: 2s
# read: 6s
## Write timeout.
# write: 2s
# write: 6s
## Idle timeout.
# idle: 30s
@ -148,10 +148,10 @@ telemetry:
# timeouts:
## Read timeout.
# read: 2s
# read: 6s
## Write timeout.
# write: 2s
# write: 6s
## Idle timeout.
# idle: 30s

View File

@ -35,8 +35,8 @@ server:
read: 4096
write: 4096
timeouts:
read: 10s
write: 10s
read: 6s
write: 6s
idle: 10s
```

View File

@ -152,7 +152,7 @@ Configures the maximum response size. The default of 4096 is generally sufficien
### read
{{< confkey type="duration" default="2s" required="no" >}}
{{< confkey type="duration" default="6s" required="no" >}}
*__Note:__ This setting uses the [duration notation format](#duration-notation-format). Please see the
[common options](#duration-notation-format) documentation for information on this format.*
@ -161,7 +161,7 @@ Configures the server read timeout.
### write
{{< confkey type="duration" default="2s" required="no" >}}
{{< confkey type="duration" default="6s" required="no" >}}
*__Note:__ This setting uses the [duration notation format](#duration-notation-format). Please see the
[common options](#duration-notation-format) documentation for information on this format.*

View File

@ -25,8 +25,8 @@ telemetry:
read: 4096
write: 4096
timeouts:
read: 2s
write: 2s
read: 6s
write: 6s
idle: 30s
```

View File

@ -96,10 +96,10 @@ server:
# timeouts:
## Read timeout.
# read: 2s
# read: 6s
## Write timeout.
# write: 2s
# write: 6s
## Idle timeout.
# idle: 30s
@ -148,10 +148,10 @@ telemetry:
# timeouts:
## Read timeout.
# read: 2s
# read: 6s
## Write timeout.
# write: 2s
# write: 6s
## Idle timeout.
# idle: 30s

View File

@ -42,8 +42,8 @@ var DefaultServerConfiguration = ServerConfiguration{
Write: 4096,
},
Timeouts: ServerTimeouts{
Read: time.Second * 2,
Write: time.Second * 2,
Read: time.Second * 6,
Write: time.Second * 6,
Idle: time.Second * 30,
},
}

View File

@ -28,8 +28,8 @@ var DefaultTelemetryConfig = TelemetryConfig{
Write: 4096,
},
Timeouts: ServerTimeouts{
Read: time.Second * 2,
Write: time.Second * 2,
Read: time.Second * 6,
Write: time.Second * 6,
Idle: time.Second * 30,
},
},

View File

@ -28,7 +28,7 @@ func CreateDefaultServer(config schema.Configuration, providers middlewares.Prov
ReadTimeout: config.Server.Timeouts.Read,
WriteTimeout: config.Server.Timeouts.Write,
IdleTimeout: config.Server.Timeouts.Idle,
Logger: logging.LoggerPrintf(logrus.WarnLevel),
Logger: logging.LoggerPrintf(logrus.DebugLevel),
}
address := net.JoinHostPort(config.Server.Host, strconv.Itoa(config.Server.Port))