Skip to content

Commit 3aeb65f

Browse files
committed
fix: solve rafiki connection issues
1 parent e9beedd commit 3aeb65f

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

local/rafiki.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ services:
7272
- testnet
7373
environment:
7474
NODE_ENV: ${NODE_ENV:-development}
75+
NODE_TLS_REJECT_UNAUTHORIZED: ${RAFIKI_BACKEND_NODE_TLS_REJECT_UNAUTHORIZED:-0}
7576
LOG_LEVEL: ${LOG_LEVEL:-debug}
7677
TRUST_PROXY: ${RAFIKI_BACKEND_TRUST_PROXY:-true}
7778
ADMIN_PORT: ${RAFIKI_BACKEND_ADMIN_PORT:-3001}
@@ -112,6 +113,9 @@ services:
112113
- redis
113114
extra_hosts:
114115
- host.docker.internal:host-gateway
116+
- testnet.test:host-gateway
117+
- rafiki-backend.testnet.test:host-gateway
118+
- auth.testnet.test:host-gateway
115119
labels:
116120
- traefik.enable=true
117121
- traefik.docker.network=testnet
@@ -142,7 +146,7 @@ services:
142146
- testnet
143147
environment:
144148
PORT: ${RAFIKI_FRONTEND_PORT:-3012}
145-
GRAPHQL_URL: ${RAFIKI_GRAPHQL_URL:-http://host.docker.internal:3001/graphql}
149+
GRAPHQL_URL: ${RAFIKI_GRAPHQL_URL:-http://rafiki-backend:3001/graphql}
146150
OPEN_PAYMENTS_URL: ${RAFIKI_FRONTEND_OPEN_PAYMENTS_URL:-https://rafiki-backend.testnet.test/}
147151
ENABLE_INSECURE_MESSAGE_COOKIE: ${RAFIKI_FRONTEND_ENABLE_INSECURE_MESSAGE_COOKIE:-true}
148152
AUTH_ENABLED: ${RAFIKI_FRONTEND_AUTH_ENABLED:-false}

local/scripts/rafiki-setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function buildEnv() {
106106
),
107107
AUTH_IDENTITY_SERVER_SECRET: get(
108108
'AUTH_IDENTITY_SERVER_SECRET',
109-
'auth-secret-key-12345'
109+
'dev_identity_server_secret'
110110
),
111111
IDP_CONSENT_URL: get(
112112
'IDP_CONSENT_URL',

packages/boutique/backend/src/open-payments/service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,8 @@ export class OpenPayments implements IOpenPayments {
525525
}
526526
}
527527
)
528-
.catch(() => {
529-
this.logger.error('Unable to create incoming payment.')
528+
.catch((err) => {
529+
this.logger.error('Unable to create incoming payment.', err)
530530
throw new InternalServerError()
531531
})
532532
}

0 commit comments

Comments
 (0)