1.3.3 • Published 2 years ago

doji-xpress v1.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

xpress

Quickly set up configured Node/Express server instances.

I made this module as I was using the same boilerplate code to configure my node server instances. This module can configure a default host, and/or multiple virtual hosts. Just supply configuration options and the module will take care of the rest.

When running in production mode, it will automatically enable multithreading to use all available CPUs.

Installation

Add it as a dependency:

npm i doji-xpress

Usage

const xpress = require("xpress");

xpress(config);

Configuration

OptionDescription
handlerThe default handler to use. Can be a Router or Express server or any middleware really.
keyRequiredPath to the default SSL key file to use.
certRequiredPath to the default SSL cert file to use.
domainsAn array of objects with configuration info for each virtual host. (config options detailed in next section.)

Domains

OptionDescription
hostRequiredThe domain name for this virtual host. Can be a string or regular expression.
handlerRequiredThe handler to use.
keyPath to the SSL key file to use. (default will be used otherwise.)
certPath to the SSL cert file to use. (default will be used otherwise.)
1.2.0

2 years ago

1.1.0

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.0.0

2 years ago