1.0.17 • Published 9 years ago

nginxconf v1.0.17

Weekly downloads
4
License
ISC
Repository
github
Last release
9 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

9 years ago

1.0.16

10 years ago

1.0.15

10 years ago

1.0.14

10 years ago

1.0.13

10 years ago

1.0.12

10 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago