dcb-integration-channel
1.2K
The DCB Integration channel is used by partners to retrieve a user_id from a user's msisdn.
We send the traffic through a tunnel on our end.
Make sure you have NPM(>5.0.0) and NodeJS(>6.9.0) installed.
Steps:
- Set environment variables as stipulated in table below
npm run start- Check base at http://{{dcb_integration_channel_base_url}}
Tip: You can change the application's configurable items in the
config/config.jsfile at the project root alongside other configurable items.
- This project makes use of PHP (
apt add php5) to triple DES the destination url that we pass to 9mobile. It was a requirement from them.- The php was install within the alpine image's container via the DockerFile
| Item | Value |
|---|---|
| Base | / |
| Channel | /get_user_id/?service_id= |
| Item | Value |
|---|---|
| NODE_ENV | (development, production, staging) |
| NODE_PATH | ./app |
| DCB_IC_APP_URL | URL for the app |
| DCB_IC_APP_PORT | Port for app to run on |
| DCB_IC_DEFAULT_REDIRECT_URL | The default redirect url to use when the CP doesn't pass one. Must include a trailing backslash |
| DCB_IC_DOUBLE_OPTIN_URL | The 9mobile Double Opt-in URL to redirect to... Must include a trailing backslash |
| DCB_IC_GATEWAY_BASE_URL | The Base URL for the gateway for DCB... Must include a trailing backslash |
| DCB_IC_ROUTING_HEADER_KEY | The Header Routing key for the gateway for DCB |
| DCB_IC_9MOBILE_TERRAGON_USERNAME | username for Terragon that 9mobile gave us |
| DCB_IC_9MOBILE_TERRAGON_KEY | 9mobile key used to triple DES encrypt the destinationURL |
| DCB_IC_9MOBILE_TERRAGON_AUTH | 9mobile auth string to use to decode the JWT token sent to us |
| DCB_IC_9MOBILE_HIVE_USERNAME | username for HIVE that 9mobile gave us |
| DCB_IC_9MOBILE_HIVE_KEY | 9mobile key for HIVE used to triple DES encrypt the destinationURL |
| DCB_IC_9MOBILE_HIVE_AUTH | 9mobile auth string to use to decode the JWT token sent to us for HIVE |
| DCB_IC_REDIS_HOST | Redis host |
| DCB_IC_REDIS_PORT | Redis Port Number |
| DCB_IC_REDIS_USER | The Username For The Redis Instance |
| DCB_IC_REDIS_PASS | Password For The Redis Instance |
| DCB_IC_REDIS_DB | The Redis DB number |
| DCB_IC_RABBIT_HOST | RabbitMQ host |
| DCB_IC_RABBIT_PORT | RabbitMQ Port Number |
| DCB_IC_RABBIT_USER | RabbitMQ user |
| DCB_IC_RABBIT_PASS | RabbitMQ user's password |
| DCB_IC_ELASTICSEARCH_HOST | Elasticsearch host - (Not Used For Now) |
| DCB_IC_ELASTICSEARCH_PORT | Elasticsearch Port Number - (Not Used For Now) |
| DCB_IC_ELASTICSEARCH_LOG_LEVEL | String(error, warning, info, debug, trace) - (Not Used For Now) |
| DCB_IC_LOG_LEVEL | String(error, warn, info, verbose, debug, silly) |
| DCB_IC_LOG_ENABLE_CONSOLE | Boolean(true/false) |
Content type
Image
Digest
Size
52.5 MB
Last updated
over 8 years ago
docker pull terragontech/dcb-integration-channel