Use system fs.max-files as limits instead of hard-coded value

This commit is contained in:
Manuel de Brito Fontes 2017-01-18 23:31:33 -03:00
parent 28c67257e3
commit 9ce52c51f1
4 changed files with 23 additions and 1 deletions

View file

@ -271,7 +271,9 @@ func NewDefault() Configuration {
return cfg
}
// TemplateConfig contains the nginx configuration to render the file nginx.conf
type TemplateConfig struct {
MaxOpenFiles int
BacklogSize int
Backends []*ingress.Backend
PassthroughBackends []*ingress.SSLPassthroughBackend