Closed
Description
Describe the bug
Parsing an nginx configuration having limit_req_zone directives using the sync parameter causes crossplane to report an error: invalid number of arguments in "limit_req_zone" directive in
http://nginx.org/en/docs/http/ngx_http_limit_req_module.html#limit_req_zone
To Reproduce
Steps to reproduce the behavior:
- Create an nginx config file with 'limit_req_zone $remote_addr zone=test_zone:10M rate=60r/s sync;'
- Run
crossplane parse
on nginx config - See traceback
Expected behavior
Since sync is a valid parameter, I would not expect any errors returned.
Your environment
- Operating System Ubuntu 18.04
- Version of crossplane: 0.5.3)
Additional context
The following PR appears to fix the error and support both 3 and 4 parameters :
#77
Metadata
Metadata
Assignees
Labels
No labels