ReverseProxyAdapter
A WebHook connection adapter that supports a reverse proxy in front of the listener.
Constructor
new ReverseProxyAdapter(options)
Creates a reverse proxy connection adapter.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
options | ReverseProxyAdapterConfig | none | see below | |
options.hostName | string | none | The host name the reverse proxy is available under. | |
options.pathPrefix | string | none | The path prefix your reverse proxy redirects to the listener. | |
options.port | number | none | The port the server should listen to. If not given, defaults to 8080. | |
options.usePathPrefixInHandlers | boolean | none | Whether the path prefix is passed to the handler. Defaults to For example, if the path prefix is set to /hooks, an external connection to /hooks/abc should pass /abc as the path to this server. Conversely, if this is set to |