refactor: simplify tls config in rest (#1181)

This commit is contained in:
Kevin Wan
2021-10-31 14:10:47 +08:00
committed by GitHub
parent cd1f8da13f
commit 769d06c8ab
6 changed files with 96 additions and 78 deletions

View File

@@ -35,7 +35,7 @@ type (
KeyFile string `json:",optional"`
Verbose bool `json:",optional"`
MaxConns int `json:",default=10000"`
MaxBytes int64 `json:",default=1048576,range=[0:33554432]"`
MaxBytes int64 `json:",default=1048576"`
// milliseconds
Timeout int64 `json:",default=3000"`
CpuThreshold int64 `json:",default=900,range=[0:1000]"`