A TypeScript library for controlling Nginx from Node.js, with support for generating and managing Nginx configurations dynamically.
Go to file
2023-07-10 10:16:53 +02:00
nginxconfig fix(core): update 2019-08-20 22:30:31 +02:00
test fix(core): update 2019-08-20 22:30:31 +02:00
ts fix(core): update 2019-08-20 22:30:31 +02:00
.gitignore fix(core): update 2019-08-20 22:30:31 +02:00
.gitlab-ci.yml fix(core): update 2019-08-20 22:30:31 +02:00
LICENSE Add license 2016-07-25 01:53:33 +00:00
npmextra.json switch to new org scheme 2023-07-10 10:16:53 +02:00
package-lock.json 2.0.51 2019-08-21 00:07:28 +02:00
package.json switch to new org scheme 2023-07-10 10:16:53 +02:00
qenv.yml fix(core): update 2019-04-10 19:03:17 +02:00
README.md fix(core): update 2019-08-20 22:30:31 +02:00

@pushrocks/smartnginx

control nginx from node, TypeScript ready

Status for master

build status coverage report npm downloads per month Known Vulnerabilities TypeScript node JavaScript Style Guide

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

For further information read the linked docs at the top of this readme.

MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy

repo-footer