This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Description
Hi all,
For my current project that I'm working on we are using a reverse proxy using nginx. I found CREATE_ENDPOINT, CREATE_SET_ENDPOINT, and UPDATE_ENDPOINT here in chatbase-node/lib/Transport.js
const CREATE_ENDPOINT = 'https://chatbase-area120.appspot.com/api/message';
const CREATE_SET_ENDPOINT = 'https://chatbase-area120.appspot.com/api/messages';
const UPDATE_ENDPOINT = 'https://chatbase-area120.appspot.com/api/message/update';
We are not allowed to use https connections but have to route our external connections through an outbound gateway as follows
const CREATE_ENDPOINT = 'http://chatbase.outbound-gateway.prd.evilcorp.com.api/message';
const CREATE_SET_ENDPOINT = 'http://chatbase.outbound-gateway.prd.evilcorp.com/api/messages';
const UPDATE_ENDPOINT = 'http://chatbase.outbound-gateway.prd.evilcorp.com/api/message/update';
where nginx then takes care of rerouting the urls.
Therefore, I wonder whether it is possible to do this in a native way without having to manually change these endpoints in our /node_modules. I know that IBM Watson for example has a function .updateServiceUrl, I was wondering if there is a chatbase equivalent to this!
Kind regards,
Jan