Add limit-request-status-code option (#2001)

* Add support for limit_req_status

* Add documentation

* Fix comment
This commit is contained in:
Anish Ramasekar 2018-01-30 07:24:44 -06:00 committed by Manuel Alejandro de Brito Fontes
parent 951a704cec
commit 2f700a9ad5
3 changed files with 14 additions and 1 deletions

View file

@ -102,6 +102,8 @@ http {
underscores_in_headers {{ if $cfg.EnableUnderscoresInHeaders }}on{{ else }}off{{ end }};
ignore_invalid_headers {{ if $cfg.IgnoreInvalidHeaders }}on{{ else }}off{{ end }};
limit_req_status {{ $cfg.LimitReqStatusCode }};
{{ if $cfg.EnableOpentracing }}
opentracing on;
{{ end }}