The Data-driven nginx configuration manager
Core dependencies of this npm package and its dev dependencies.
code-stringify, commander, cross-spawn, debug, fs-extra, globby, is-glob, js-yaml, json5, make-array, once, pre-suf, typo, typo-chalk, ava, babel-cli, babel-plugin-syntax-trailing-function-commas, babel-plugin-transform-async-to-generator, babel-plugin-transform-class-properties, babel-plugin-transform-es2015-modules-commonjs, babel-plugin-transform-exponentiation-operator, babel-plugin-transform-inline-environment-variables, babel-plugin-transform-object-rest-spread, babel-plugin-transform-runtime, babel-preset-es2015
A README file for the ngx code repository. View Code
The Data-driven nginx configuration manager, featured:
include
, root
, and other directives.include
with glob patterns, such as include conf.d/**/*.conf;
$ npm install -g ngx
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.
PRs or wishlists are welcome. Please be free to create an issue.
MIT