Bumping up the defaults (#4229)
Этот коммит содержится в:
@@ -8,8 +8,8 @@
|
|||||||
"UseLetsEncrypt": false,
|
"UseLetsEncrypt": false,
|
||||||
"LetsEncryptCertificateCacheFile": "./config/letsencrypt.cache",
|
"LetsEncryptCertificateCacheFile": "./config/letsencrypt.cache",
|
||||||
"Forward80To443": false,
|
"Forward80To443": false,
|
||||||
"ReadTimeout": 30,
|
"ReadTimeout": 300,
|
||||||
"WriteTimeout": 60,
|
"WriteTimeout": 300,
|
||||||
"MaximumLoginAttempts": 10,
|
"MaximumLoginAttempts": 10,
|
||||||
"SegmentDeveloperKey": "",
|
"SegmentDeveloperKey": "",
|
||||||
"GoogleDeveloperKey": "",
|
"GoogleDeveloperKey": "",
|
||||||
|
|||||||
@@ -940,12 +940,12 @@ func (o *Config) SetDefaults() {
|
|||||||
|
|
||||||
if o.ServiceSettings.ReadTimeout == nil {
|
if o.ServiceSettings.ReadTimeout == nil {
|
||||||
o.ServiceSettings.ReadTimeout = new(int)
|
o.ServiceSettings.ReadTimeout = new(int)
|
||||||
*o.ServiceSettings.ReadTimeout = 30
|
*o.ServiceSettings.ReadTimeout = 300
|
||||||
}
|
}
|
||||||
|
|
||||||
if o.ServiceSettings.WriteTimeout == nil {
|
if o.ServiceSettings.WriteTimeout == nil {
|
||||||
o.ServiceSettings.WriteTimeout = new(int)
|
o.ServiceSettings.WriteTimeout = new(int)
|
||||||
*o.ServiceSettings.WriteTimeout = 60
|
*o.ServiceSettings.WriteTimeout = 300
|
||||||
}
|
}
|
||||||
|
|
||||||
if o.ServiceSettings.Forward80To443 == nil {
|
if o.ServiceSettings.Forward80To443 == nil {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user