Skip to content

API Applet Configuration

Michael Anderson edited this page Dec 1, 2017 · 1 revision

applet_configuration

Configuration data attached to applets. This is an informational structure only, changes to the server configuration are done in the server.json file.

Properties

applet

Type: container

Contains the mount information about the applet.

errorTemplate

Type: string

Contains the path to the default template the server uses for errors. Changing this does not alter the server behavior. This can be used to provide additional handling for applet specific errors.

protocols

Type: Array<protocol>

Contains a list of protocol objects the server has started.

container

This defines an applet's file system path and web server path.

Properties

container

Type: string

This is the web path for the applet.

path

Type: string

This is the file system path for the applet.

protocol

This defines a given protocol entry for which the server has created a listener.

Properties

name

Type: string

This is the protocol name, e.g. "http", "https", "spdy"

port

Type: integer

This is the port number to which the listener is attached.

listen

Type: string | boolean

If listen is a string, it defines the interface address to which the listener is bound. If listen is a TRUE value, then the listener is bound to the "0.0.0.0" IPv4 pseudo interface. If listen is a FALSE value, then the listener was not started.

websockets

Type: boolean

If this is true, a WebSocket server has been attached to the listener.

ssl

Type: boolean

If this is true, the listener is SSL encrypted.

Clone this wiki locally