20. Layer nodejs

20.1. Overview

The layer1_nodejs layer includes the Node.js cross-platform JavaScript runtime environment.

It is included in the .layerapi2_dependencies file of the plugin when you create a web server with the node template during the creation of a plugin.

You may also manually include this dependencies (i.e. Label) in the .layerapi2_dependencies file.

This layer also include tools to neatly start and stop the Node.js web server (see /opt/metwork-mfserv/opt/nodejs/lib/node_modules/metwork-tools/index.js).

20.2. Metadata

20.2.1. Layer Home

/opt/metwork-mfserv-0.9/opt/nodejs

20.2.2. Label

nodejs@mfserv

20.2.3. Package

metwork-mfserv-layer-nodejs

20.2.4. Dependencies

  • nodejs@mfext

20.2.5. Extra-environment (loaded after layer load)

Output:

NODE_TLS_REJECT_UNAUTHORIZED=0

20.3. Utilities