0.0.1 • Published 5 months ago

nginx-vir v0.0.1

Weekly downloads
-
License
(MIT or CC0 1.0)
Repository
github
Last release
5 months ago

nginx-vir

A package for scripting some Nginx functionality.

See the docs: https://electrovir.github.io/nginx-vir

Install

npm i nginx-vir

Example usage

Here's an example script that can be used to setup a new Nginx website with self-signed SSL certificates for SSL:

import {createSelfSignedHttpsNginxSite} from 'nginx-vir';

await createSelfSignedHttpsNginxSite({
    enabled: true,
    locations: [
        {
            type: 'location',
            uri: '/',
            children: [
                {
                    type: 'proxy_pass',
                    url: 'http://localhost:3000',
                },
            ],
        },
    ],
    siteName: 'my-site',
});
0.0.1

5 months ago

0.0.0

6 months ago