nginxinc / crossplane

Quick and reliable way to convert NGINX configurations into JSON and back.
Apache License 2.0
717 stars 86 forks source link

fixed acceptable 'state' directive contexts #20

Closed aluttik closed 6 years ago

aluttik commented 6 years ago

This was throwing an NgxParserDirectiveContextError:

http {
    upstream {
        state /path/to/state/file.conf;
    }
}

Although it shouldn't've, as you can see here:
http://nginx.org/en/docs/http/ngx_http_upstream_module.html#state
http://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#state

gshulegaard commented 6 years ago

:1st_place_medal::dash:

dedm commented 6 years ago

:dash: