Interface BaseServerFactoryOptions

Options to be used when creating the server. Due to Components.js not supporting external types, this has been simplified (for now?). The common https keys here (key/cert/pfx) will be interpreted as file paths that need to be read before passing the options to the createServer function.

interface BaseServerFactoryOptions {
    cert?: string;
    https?: boolean;
    key?: string;
    passphrase?: string;
    pfx?: string;
}

Properties

cert?: string
https?: boolean

If the server should start as an HTTP or HTTPS server.

key?: string
passphrase?: string
pfx?: string