2.1.4 • Published 8 years ago

nengine v2.1.4

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

nengine

A static node http/https server

NPM Version Download Status Node Version Dependencies

Getting started

Install

$ npm install nengine

Note: nengine require nengine-cli

Introduction

if you have installed nengine-cli and nengine, you can run nengine by command:

$ nengine

and use:

$ nengine -h

for help.

you can config server by nengine.yml under server root:

port: # default: 80
  80
hostname: # default: 127.0.0.1
  127.0.0.1
dir: # default: deny
  allow
key: # options if not https server
  /key.pem
cert:  # options if not https server
  /cert.pem
ignoreAccess: # default: deny
  deny
ignore: # default: []
  - /nengine.yml
  - /node_modules(|/**)
maxAge: # default: 0
  2592000
index: # default: []
  - index.htm
  - index.html
  - default.htm
  - default.html
etag: # default: true
  true
lastModified: # default: true
  true
error: # default: {}
  404:
    /error/404.html
  default:
    /error/default.html

port: server port. {Number}

hostname: server hostname. {String}

key: https key path relative to root. {String}

cert: https cert path relative to root. {String}

dir: show directory, you can set "allow", "deny", "ignore". {String}

ignoreAccess: set how "ignore" are treated when encountered. {String}

the default value is 'deny'.

  • 'deny' send a 403 for any request for ignore matched.
  • 'ignore' pretend like the ignore matched does not exist and 404.

ignore: set dir and files ignore glob rules. {Array|String}

maxAge: set max-age, unit: seconds and also you can set like "2 days". {Number|String}

index: set default document. {Array|String}

etag: set etag. {Boolean}

lastModified: set lastModified. {Boolean}

error: set custom error page. {Object}

License

MIT

2.1.4

8 years ago

2.1.3

8 years ago

2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.15

8 years ago

2.0.14

8 years ago

2.0.13

8 years ago

2.0.12

8 years ago

2.0.11

8 years ago

2.0.10

9 years ago

2.0.9

9 years ago

2.0.8

9 years ago

2.0.7

9 years ago

2.0.6

9 years ago

2.0.5

9 years ago

2.0.4

9 years ago

2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.3.6

9 years ago

0.3.5

9 years ago

0.3.4

9 years ago

0.3.3

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.9

9 years ago

0.2.8

9 years ago

0.2.7

9 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.8

11 years ago

0.1.7

11 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago