Enable koa-based web engine.
- Source:
- serverFeatures/koa.js
Members
-
<static> type :string
-
This feature is loaded at service stage
Type:
- string
- Source:
- serverFeatures/koa.js
Methods
-
<static> load_(server, options)
-
Load the feature
Parameters:
Name Type Description serverWebServer The web server
optionsobject Options for the feature
- Source:
- serverFeatures/koa.js
Properties:
Name Type Argument Default Description options.trustProxybool <optional>
When true proxy header fields will be trusted
options.keysArray.<string> <optional>
Set signed cookie keys
options.httpPortint <optional>
The http port number
options.subdomainOffsetint <optional>
2 The offset of subdomains to ignore, default: 2
Returns:
- Type
- Promise.<*>