Skip to content

Commit

Permalink
feat(mojaloop/#3991): add support for cross-network proxy routing (#341)
Browse files Browse the repository at this point in the history
feat(mojaloop/#3991): add support for cross-network proxy routing (#341)
- Added proxy lib
- Added configuration for proxy
- Added unit and integration tests for proxy related functionalities
  • Loading branch information
oderayi committed Jul 8, 2024
1 parent 5fbe158 commit 8e879f8
Show file tree
Hide file tree
Showing 23 changed files with 1,006 additions and 172 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ USER root
WORKDIR /opt/app

RUN apk --no-cache add git
RUN apk add --no-cache -t build-dependencies make gcc g++ python3 libtool openssl-dev autoconf automake bash \
RUN apk add --no-cache -t build-dependencies make gcc g++ python3 py3-setuptools libtool openssl-dev autoconf automake bash \
&& cd $(npm root -g)/npm

COPY package.json package-lock.json* /opt/app/
Expand Down
10 changes: 10 additions & 0 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@
"ENUM_DATA_EXPIRES_IN_MS": 4170000,
"PARTICIPANT_DATA_EXPIRES_IN_MS": 60000
},
"PROXY_CACHE": {
"enabled": false,
"type": "redis",
"proxyConfig": {
"host": "localhost",
"port": 6379,
"db": 0
}
},
"LOG_LEVEL": "info",
"KAFKA": {
"CONSUMER": {
"QUOTE": {
Expand Down
13 changes: 12 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ services:


central-ledger:
image: mojaloop/central-ledger
image: mojaloop/central-ledger:v17.7.0-snapshot.20
container_name: qs_central-ledger
ports:
- "3001:3001"
Expand Down Expand Up @@ -97,6 +97,17 @@ services:
healthcheck:
<<: *healthcheckParams
test: [ "CMD", "mysqladmin" ,"ping", "-h", "mysql" ]

redis:
image: "redis:6.2.4-alpine"
container_name: redis
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3

# mockserver:
# image: jamesdbloom/mockserver
Expand Down
9 changes: 9 additions & 0 deletions docker/quoting-service/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@
"ENUM_DATA_EXPIRES_IN_MS": 4170000,
"PARTICIPANT_DATA_EXPIRES_IN_MS": 60000
},
"PROXY_CACHE": {
"enabled": true,
"type": "redis",
"proxyConfig": {
"host": "redis",
"port": 6379,
"db": 0
}
},
"KAFKA": {
"CONSUMER": {
"QUOTE": {
Expand Down
Loading

0 comments on commit 8e879f8

Please sign in to comment.