Disable features not availables in some platforms

This commit is contained in:
Manuel de Brito Fontes 2017-11-12 10:33:18 -03:00
parent 0d2434f87f
commit fdd231816c
4 changed files with 22 additions and 11 deletions

View file

@ -335,7 +335,7 @@ type Configuration struct {
// Enables or disables the use of the NGINX Brotli Module for compression
// https://github.com/google/ngx_brotli
UseBrotli bool `json:"use-brotli,omitempty"`
EnableBrotli bool `json:"enable-brotli,omitempty"`
// Brotli Compression Level that will be used
BrotliLevel int `json:"brotli-level,omitempty"`
@ -476,7 +476,7 @@ func NewDefault() Configuration {
SSLSessionCacheSize: sslSessionCacheSize,
SSLSessionTickets: true,
SSLSessionTimeout: sslSessionTimeout,
UseBrotli: true,
EnableBrotli: true,
UseGzip: true,
WorkerProcesses: strconv.Itoa(runtime.NumCPU()),
WorkerShutdownTimeout: "10s",