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

Is it possible to update the endpoints to use behind an HTTP proxy? #33

@Rainymood

Description

@Rainymood

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions