Interface AddonOptions

interface AddonOptions {
    appName?: string;
    baseUrl?: string;
    connection?: any;
    port?: number;
    redirectRoot?: boolean;
    sessionSecret?: string;
    staticPath?: string;
    staticRoute?: string;
    viewEngine?: string;
}

Properties

appName?: string

Name of the app

baseUrl?: string

Base URL for the addon

connection?: any

Connection options for the Kitsas server Look at the KitsasConnectionOptions in kitsas-library for more details Can be configured via environment variables

port?: number

Port to listen on Can be configured via environment variable PORT

Default

3210
redirectRoot?: boolean

Redirect root to /addon

Default

true
sessionSecret?: string

Secret for the session Can be configured via environment variable SESSION_SECRET Default is a random 32 byte hex string

staticPath?: string

Path to the static files

Default

public
staticRoute?: string

Route for static files

Default

/static
viewEngine?: string

View engine to use

Default

pug