Allow custom global configuration at multiple levels

This commit is contained in:
Manuel de Brito Fontes 2017-10-01 11:45:33 -03:00
parent 5fadaf5f57
commit 05b212e1de
3 changed files with 33 additions and 0 deletions

View file

@ -391,6 +391,15 @@ type Configuration struct {
// ZipkinServiceName specifies the service name to use for any traces created
// Default: nginx
ZipkinServiceName string `json:"zipkin-service-name"`
// HTTPSnippet adds custom configuration to the http section of the nginx configuration
HTTPSnippet string `json:"http-snippet"`
// ServerSnippet adds custom configuration to all the servers in the nginx configuration
ServerSnippet string `json:"server-snippet"`
// LocationSnippet adds custom configuration to all the locations in the nginx configuration
LocationSnippet string `json:"location-snippet"`
}
// NewDefault returns the default nginx configuration