A TypeScript library for controlling Nginx from Node.js, with support for generating and managing Nginx configurations dynamically.
Go to file
2016-07-25 01:53:33 +00:00
dist now talking correctly to nginx 2016-07-25 03:21:28 +02:00
test now ending nginx after test 2016-07-25 02:57:17 +02:00
ts now talking correctly to nginx 2016-07-25 03:21:28 +02:00
.gitignore update deps and exclude any config from git 2016-07-13 16:19:00 +02:00
.gitlab-ci.yml fix tests 2016-07-25 01:57:51 +02:00
LICENSE Add license 2016-07-25 01:53:33 +00:00
package.json 1.0.0 2016-07-25 03:21:33 +02:00
qenv.yml now creating a valid config with ssl certificates 2016-07-13 13:04:48 +02:00
README.md improve README 2016-07-25 02:02:24 +02:00

smartnginx

control nginx from node, TypeScript ready

Status

build status

Features

  • easy reverse configuration
  • automatic letsencrypt DNS01 challenge based ssl cert generation
  • automatic nginx process handling zero-downtime config reloading
  • works in Docker environements

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 gracefully reloads it