1.0.17 • Published 7 years ago

nginxconf v1.0.17

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

nginxconf

Utility for create nginx configuration file (.conf) on ubuntu/debian easily.

Nginxconf create and enable nginx .conf files based on models.

How to install

with npm

npm install -g nginxconf

or with yarn

yarn global add nginxconf

How to use

sudo nginxconf

Nginxconf create and enable nginx .conf files based on templated models in models folder (ex : /usr/lib/node_modules/nginxconf/lib/models).

Exemple model file for reverse-proxy :

(in ex : /usr/lib/node_modules/nginxconf/lib/models/reverse.conf)

reverse.conf

server {
    listen <%= listen %>;

    server_name www.<%= server_name %> <%= server_name %>;

    location / {
        proxy_pass <%= proxy_pass %>;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}

nginxconf has 3 preset models : angular.conf, http-static.conf and reverse.conf in models folder, you can make your model and put it in models folder, mark your variables in your model for use in nginxconf <%= YOUR_VAR %>

1.0.17

7 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago