nginxinc / nginx-go-crossplane

A library for working with NGINX configs in Go
Apache License 2.0
52 stars 14 forks source link

add missing njs directives #46

Closed valyria257 closed 1 year ago

valyria257 commented 1 year ago

Proposed changes

A few njs directives are missing from the allow list that were added in newer releases. This set includes:

For more information on the contexts these directives may be specified in and the number of arguments they may have, see https://nginx.org/en/docs/http/ngx_http_js_module.html and https://nginx.org/en/docs/stream/ngx_stream_js_module.html

I skipped adding to any unit tests since we aren't testing every single NGINX directive and existing coverage that analyze works should be enough.

Checklist

Before creating a PR, run through this checklist and mark each as complete.