@imyoon/nginx-register
- generate nginx config
Last updated 5 months ago by shanfengliu .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @imyoon/nginx-register 
SYNC missed versions from official npm registry.

Features

  • generate nginx config

Install

npm i @imyoon/nginx-helper -g

Usage

  • install nginx, set default directory '/usr/local/nginx'
  • modify '/usr/local/nginx/conf/nginx.config', add including opr in http model
# eg
worker_processes  1;
events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    server {
        listen       80;
        server_name  localhost;
        location / {
            root   html;
            index  index.html index.htm;
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }
    // --> here 
    include /etc/nginx/conf.d/*.conf;
}
  • run command
Usage: register [options]

Options:
  -V, --version   output the version number
  -r, --register  register an config
  -h, --help      output usage information
  • reload nginx
nginx -s reload

Current Tags

  • 1.0.3                                ...           latest (5 months ago)

1 Versions

  • 1.0.3                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 2
Dependencies (3)
Dev Dependencies (14)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |