Optional
allowedOptional
apiPrefix to use for the API. E.g. /api
in /api/v1/session
Default is /api
.
Optional
disallowedDisallow these IP ranges from being hit when handling OpenID requests. By default, a number of intenal ranges are blocked.
DefaultDisallowedIpRanges
Optional
expressProvide an existing express app to bind to.
Note: start() and close() will no-op when this is used.
Optional
openA set of Matrix server names to override the well known response to. Should only be used for testing.
Optional
provisioningSecret token for provisioning requests
Optional
ratelimitOptions for ratelimiting requests to the api server. Does not affect static content loading.
Optional
widgetWhere are the files stored for the widget frontend. If undefined, do not host a frontend.
Optional
widgetHow long should a widget token last for?
Optional
widgetFor widget tokens, use this prefix.
Generated using TypeDoc
Allow these IP ranges to be hit when handling OpenID requests even if they are within
disallowedIpRanges
. This allows specific sub-ranges ofdisallowedIpRanges
to be used without having to carefully construct the ranges that still should be disallowed.If the IP the OpenID request would be made to isn't in either list it is implicitly allowed.
Defaults to the empty list.