2.4.0 • Published 6 years ago

ngx v2.4.0

Weekly downloads
491
License
MIT
Repository
github
Last release
6 years ago

Build Status

ngx

The Data-driven nginx configuration manager, featured:

  • Resolved path calculation for include, root, and other directives.
  • Nginx-style template engine and building system to reuse a template with several sets of data.
  • Directive include with glob patterns, such as include conf.d/**/*.conf;

Install

$ npm install -g ngx

Usage

NGX_ENV=production ngx start
# or
ngx start --env production

For now, you can find the example at the sample directory.

git clone git@github.com:kaelzhang/node-ngx.git
cd node-ngx
npm link
cd sample
ngx start --env production

And the nginx will start and you will find compiled nginx conf files at sample/nginx directory.

Contributing

PRs or wishlists are welcome. Please be free to create an issue.

License

MIT