diff --git a/local/rafiki.yaml b/local/rafiki.yaml index 7f8c6b747..25a16e899 100644 --- a/local/rafiki.yaml +++ b/local/rafiki.yaml @@ -72,6 +72,7 @@ services: - testnet environment: NODE_ENV: ${NODE_ENV:-development} + NODE_TLS_REJECT_UNAUTHORIZED: ${RAFIKI_BACKEND_NODE_TLS_REJECT_UNAUTHORIZED:-0} LOG_LEVEL: ${LOG_LEVEL:-debug} TRUST_PROXY: ${RAFIKI_BACKEND_TRUST_PROXY:-true} ADMIN_PORT: ${RAFIKI_BACKEND_ADMIN_PORT:-3001} @@ -112,6 +113,9 @@ services: - redis extra_hosts: - host.docker.internal:host-gateway + - testnet.test:host-gateway + - rafiki-backend.testnet.test:host-gateway + - auth.testnet.test:host-gateway labels: - traefik.enable=true - traefik.docker.network=testnet @@ -142,7 +146,7 @@ services: - testnet environment: PORT: ${RAFIKI_FRONTEND_PORT:-3012} - GRAPHQL_URL: ${RAFIKI_GRAPHQL_URL:-http://host.docker.internal:3001/graphql} + GRAPHQL_URL: ${RAFIKI_GRAPHQL_URL:-http://rafiki-backend:3001/graphql} OPEN_PAYMENTS_URL: ${RAFIKI_FRONTEND_OPEN_PAYMENTS_URL:-https://rafiki-backend.testnet.test/} ENABLE_INSECURE_MESSAGE_COOKIE: ${RAFIKI_FRONTEND_ENABLE_INSECURE_MESSAGE_COOKIE:-true} AUTH_ENABLED: ${RAFIKI_FRONTEND_AUTH_ENABLED:-false} diff --git a/local/scripts/rafiki-setup.js b/local/scripts/rafiki-setup.js index a5afd3aca..3d4fd6f7b 100644 --- a/local/scripts/rafiki-setup.js +++ b/local/scripts/rafiki-setup.js @@ -106,7 +106,7 @@ function buildEnv() { ), AUTH_IDENTITY_SERVER_SECRET: get( 'AUTH_IDENTITY_SERVER_SECRET', - 'auth-secret-key-12345' + 'dev_identity_server_secret' ), IDP_CONSENT_URL: get( 'IDP_CONSENT_URL', diff --git a/packages/boutique/backend/src/open-payments/service.ts b/packages/boutique/backend/src/open-payments/service.ts index a36d77860..45703ba68 100644 --- a/packages/boutique/backend/src/open-payments/service.ts +++ b/packages/boutique/backend/src/open-payments/service.ts @@ -525,8 +525,8 @@ export class OpenPayments implements IOpenPayments { } } ) - .catch(() => { - this.logger.error('Unable to create incoming payment.') + .catch((err) => { + this.logger.error('Unable to create incoming payment.', err) throw new InternalServerError() }) }