From 7ce40331d86274a7fd7b031bf20b34a2c36ba0f1 Mon Sep 17 00:00:00 2001 From: Nabarun Gogoi Date: Mon, 16 Oct 2023 18:15:15 +0530 Subject: [PATCH] Remove reverse payment proxy from payments stack (#584) * Remove reverse payment proxy service from payment stack * Remove run-reverse-payment-proxy.sh * Remove reverse payment proxy port from readme --------- Co-authored-by: Shreerang Kale --- ...er-compose-nitro-reverse-payment-proxy.yml | 27 ------------------- .../go-nitro/run-reverse-payment-proxy.sh | 14 ---------- app/data/pod-list.txt | 1 - app/data/stacks/fixturenet-payments/README.md | 1 - 4 files changed, 43 deletions(-) delete mode 100644 app/data/compose/docker-compose-nitro-reverse-payment-proxy.yml delete mode 100755 app/data/config/go-nitro/run-reverse-payment-proxy.sh diff --git a/app/data/compose/docker-compose-nitro-reverse-payment-proxy.yml b/app/data/compose/docker-compose-nitro-reverse-payment-proxy.yml deleted file mode 100644 index bf7461a0..00000000 --- a/app/data/compose/docker-compose-nitro-reverse-payment-proxy.yml +++ /dev/null @@ -1,27 +0,0 @@ -version: '3.7' - -services: - nitro-reverse-payment-proxy: - image: cerc/go-nitro:local - hostname: nitro-reverse-payment-proxy - restart: on-failure - depends_on: - # Wait for the go-nitro node to start - go-nitro: - condition: service_healthy - environment: - CERC_PROXY_ADDRESS: 0.0.0.0:8081 - CERC_PROXY_NITRO_ENDPOINT: ${CERC_PROXY_NITRO_ENDPOINT:-go-nitro:4005/api/v1} - CERC_PROXY_DESTINATION_URL: ${CERC_PROXY_DESTINATION_URL:-http://ipld-eth-server:8081} - CERC_PROXY_COST_PER_BYTE: ${CERC_PROXY_COST_PER_BYTE:-1} - entrypoint: ["bash", "-c", "/app/run-reverse-payment-proxy.sh"] - volumes: - - ../config/go-nitro/run-reverse-payment-proxy.sh:/app/run-reverse-payment-proxy.sh - healthcheck: - test: ["CMD", "nc", "-vz", "localhost", "8081"] - interval: 10s - timeout: 5s - retries: 10 - start_period: 10s - ports: - - "8081:8081" diff --git a/app/data/config/go-nitro/run-reverse-payment-proxy.sh b/app/data/config/go-nitro/run-reverse-payment-proxy.sh deleted file mode 100755 index 4aa07fbe..00000000 --- a/app/data/config/go-nitro/run-reverse-payment-proxy.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -set -e -if [ -n "$CERC_SCRIPT_DEBUG" ]; then - set -x -fi - -echo "Running Nitro reverse payment proxy" -echo "Using CERC_PROXY_ADDRESS ${CERC_PROXY_ADDRESS}" -echo "Using CERC_PROXY_NITRO_ENDPOINT ${CERC_PROXY_NITRO_ENDPOINT}" -echo "Using CERC_PROXY_DESTINATION_URL ${CERC_PROXY_DESTINATION_URL}" -echo "Using CERC_PROXY_COST_PER_BYTE ${CERC_PROXY_COST_PER_BYTE}" - -./proxy -proxyaddress ${CERC_PROXY_ADDRESS} -nitroendpoint=${CERC_PROXY_NITRO_ENDPOINT} -destinationurl=${CERC_PROXY_DESTINATION_URL} -costperbyte ${CERC_PROXY_COST_PER_BYTE} -enablepaidrpcmethods diff --git a/app/data/pod-list.txt b/app/data/pod-list.txt index 06bb7561..4ba1bac0 100644 --- a/app/data/pod-list.txt +++ b/app/data/pod-list.txt @@ -40,7 +40,6 @@ mobymask-app-v3 go-nitro nitro-rpc-client nitro-contracts -nitro-reverse-payment-proxy mobymask-snap ponder ipld-eth-server-payments diff --git a/app/data/stacks/fixturenet-payments/README.md b/app/data/stacks/fixturenet-payments/README.md index 2776f438..07ce1925 100644 --- a/app/data/stacks/fixturenet-payments/README.md +++ b/app/data/stacks/fixturenet-payments/README.md @@ -26,7 +26,6 @@ laconic-so --stack fixturenet-payments deploy --cluster payments up # Exposed on host ports: # 4005: go-nitro node's RPC endpoint # 5005: go-nitro node's p2p endpoint -# 8081: reverse payment proxy's RPC endpoint # 15432: MobyMask v3 watcher's db endpoint # 3001: MobyMask v3 watcher endpoint # 9090: MobyMask v3 watcher relay node endpoint