A TypeScript library for controlling Nginx from Node.js, with support for generating and managing Nginx configurations dynamically.
Go to file
2018-08-11 00:29:16 +02:00
dist improve snippets 2016-08-02 23:58:00 +02:00
test BREAKING CHANGE(scope): change scope to @pushrocks 2018-08-10 23:10:48 +02:00
ts BREAKING CHANGE(scope): change scope to @pushrocks 2018-08-10 23:10:48 +02:00
.gitignore update deps and exclude any config from git 2016-07-13 16:19:00 +02:00
.gitlab-ci.yml fix(CI): now installing stufall alright 2018-08-11 00:25:20 +02:00
LICENSE Add license 2016-07-25 01:53:33 +00:00
npmextra.json fix(CI): accessLevel 2018-08-11 00:29:16 +02:00
package-lock.json 2.0.3 2018-08-11 00:29:16 +02:00
package.json 2.0.3 2018-08-11 00:29:16 +02:00
qenv.yml BREAKING CHANGE(scope): change scope to @pushrocks 2018-08-10 23:10:48 +02:00
README.md BREAKING CHANGE(scope): change scope to @pushrocks 2018-08-10 23:10:48 +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';
const smartnginxInstance = new smartnginx.SmartNginx();
myNginxHost = new smartnginx.NginxHost({
  hostName: '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