A TypeScript library for controlling Nginx from Node.js, with support for generating and managing Nginx configurations dynamically.
Go to file
2016-07-21 02:25:15 +02:00
dist added clean method and compiled 2016-07-21 02:24:54 +02:00
test added clean method and compiled 2016-07-21 02:24:54 +02:00
ts added clean method and compiled 2016-07-21 02:24:54 +02:00
.gitignore update deps and exclude any config from git 2016-07-13 16:19:00 +02:00
.gitlab-ci.yml add gitlab ci 2016-07-06 03:17:45 +02:00
package.json 0.0.7 2016-07-21 02:25:15 +02:00
qenv.yml now creating a valid config with ssl certificates 2016-07-13 13:04:48 +02:00
README.md imrpove README 2016-07-06 06:33:38 +02:00

smartnginx

control nginx from node, TypeScript ready

Status

build status

Usage

We recommend the use of TypeScript! :)

import * as smartnginx from "smartnginx";
myNginxConfig = new smartnginx.NginxConfig();
myNginxZone = new smartnginx.NginxZone({
    zoneName:"some.example.com",
    type:"reverseProxy",
    destination:"192.192.192.192" // some destination IP
});
myNginxConfig.addZone(myNginxZone); // adds the zone to the config
myNginxConfig.deploy(); // deploys the referenced NginxConfig and restarts nginx