The configuration parameters module of the webserver adapter.
The property values of this object will be resolved during the startup process.
This object will appear as the default setup within the container.config.webServer
property during the startup process, when the startup
function of this adapter is called.
In order to change the values of the configuration parameters, use either the corresponding environment variables, or merge your config object, with this default config setup.
Members
(static) webServer
The webserver related configuration object, that will be merged into the container.config
object.
Properties:
Name | Type | Description |
---|---|---|
logBlackList |
Array | The array of URIs that should not be logged. Default: |
port |
Number | The port where the webserver will listen. Env.: |
useCompression |
Boolean | If |
useMessaging |
Boolean | If |
middlewares |
Object | The dictionary of middleware functions needs to be added. Defaults: |
restApiPath |
String | The path to the root file of the swagger/OpenApi descriptor file(s) Env.: |
staticContentBasePath |
String | The base path to the static endpoints of the REST API. Env.: |
ignoreApiOperationIds |
Boolean | Ignores the |
enableMocking |
Boolean | Responses the first example found in the |
basePath |
String | Define the base-path (prefix) for the REST API endpoints. Env.: |
oasConfig |
Object | The swagger-parser configuration object. Defaults: |
bodyParser |
Object | The request body parser configuration object. Defaults: all types default to false. |