2019-04-10 23:15:37 +02:00
2019-04-10 19:03:17 +02:00
2019-04-10 23:15:37 +02:00
2019-01-01 22:35:18 +01:00
2016-07-25 01:53:33 +00:00
2018-08-11 15:09:19 +02:00
2019-04-10 23:14:08 +02:00
2019-04-10 23:14:08 +02:00
2019-04-10 19:03:17 +02:00
2019-01-09 12:15:28 +01: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
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%