2016-07-25 01:57:51 +02:00
2016-07-25 01:54:36 +02:00
2016-07-25 01:54:36 +02:00
2016-07-25 01:54:36 +02:00
2016-07-25 01:57:51 +02:00
2016-07-25 01:54:41 +02:00
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
Description
A TypeScript library for controlling Nginx from Node.js, with support for generating and managing Nginx configurations dynamically.
Readme 322 KiB
Languages
TypeScript 100%