Class: StaticServer

StaticServer()

Server for static files

Constructor

new StaticServer()

Source:

Members

auth

Who may use the admin interface, see AdminAuth.

Source:

Methods

adminUIs()

Names of the admin interfaces: the folders in Settings#adminUIsPath.

Source:

adminUIsSharedPath()

Folder containing content common to all admin UIs.

Source:

attach()

Serve from a server owned by a hosting program (e.g. JAS), which mounts StaticServer#expApp
and decides the port.

Source:

defaultAdminUIPath()

The admin interface served at /admin: Settings#defaultAdminUI, or multiuser if that one is missing.

Source:

generateSharedJS()

Generates "shared.js", to be used by all clients to connect to server.
Copies 'sharedTemplate.js', filling in this machine's IP, the port and the route.

Source: