From 147d398067af248c9fab24a369eacc7aa108f212 Mon Sep 17 00:00:00 2001 From: czarly <379651+czarly@users.noreply.github.com> Date: Mon, 14 Mar 2022 20:09:33 +0400 Subject: [PATCH] proper path to avalanche --- avalanche.yml | 8 +++-- avalanche/configs/chains/C/config.json | 44 ++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 avalanche/configs/chains/C/config.json diff --git a/avalanche.yml b/avalanche.yml index 8971e667..d95cfb35 100644 --- a/avalanche.yml +++ b/avalanche.yml @@ -2,7 +2,7 @@ version: '3.1' services: avalanche: - image: avaplatform/avalanchego + image: avaplatform/avalanchego:v1.7.7 expose: - "9650" - "9651" @@ -11,6 +11,7 @@ services: - "9651:9651/udp" volumes: - avalanche:/root/.avalanchego + - ./avalanche/configs/chains/C/config.json:/root/.avalanchego/configs/chains/C/config.json networks: - chains command: "/avalanchego/build/avalanchego --http-host=" @@ -18,12 +19,13 @@ services: labels: - "traefik.enable=true" - "traefik.http.middlewares.ipwhitelist.ipwhitelist.sourcerange=$WHITELIST" + - "traefik.http.middlewares.avalanche-replacepath.replacepath.path=/ext/bc/C/rpc" - "traefik.http.middlewares.avalanche-stripprefix.stripprefix.prefixes=/avalanche" - - "traefik.http.services.avalanche.loadbalancer.server.port=8545" + - "traefik.http.services.avalanche.loadbalancer.server.port=9650" - "traefik.http.routers.avalanche.entrypoints=websecure" - "traefik.http.routers.avalanche.tls.certresolver=myresolver" - "traefik.http.routers.avalanche.rule=Host(`$DOMAIN`) && PathPrefix(`/avalanche`)" - - "traefik.http.routers.avalanche.middlewares=avalanche-stripprefix, ipwhitelist" + - "traefik.http.routers.avalanche.middlewares=avalanche-stripprefix, avalanche-replacepath, ipwhitelist" volumes: avalanche: \ No newline at end of file diff --git a/avalanche/configs/chains/C/config.json b/avalanche/configs/chains/C/config.json new file mode 100644 index 00000000..ea08de30 --- /dev/null +++ b/avalanche/configs/chains/C/config.json @@ -0,0 +1,44 @@ +{ + "snowman-api-enabled": false, + "coreth-admin-api-enabled": false, + "coreth-admin-api-dir": "", + "eth-apis": [ + "public-eth", + "public-eth-filter", + "eth", + "net", + "web3", + "internal-public-eth", + "internal-public-blockchain", + "internal-public-transaction-pool", + "internal-public-account" + ], + "continuous-profiler-dir": "", + "continuous-profiler-frequency": 900000000000, + "continuous-profiler-max-files": 5, + "rpc-gas-cap": 50000000, + "rpc-tx-fee-cap": 100, + "preimages-enabled": false, + "pruning-enabled": true, + "snapshot-async": true, + "snapshot-verification-enabled": false, + "metrics-enabled": false, + "metrics-expensive-enabled": false, + "local-txs-enabled": false, + "api-max-duration": 0, + "ws-cpu-refill-rate": 0, + "ws-cpu-max-stored": 0, + "api-max-blocks-per-request": 0, + "allow-unfinalized-queries": false, + "allow-unprotected-txs": false, + "keystore-directory": "", + "keystore-external-signer": "", + "keystore-insecure-unlock-allowed": false, + "remote-tx-gossip-only-enabled": false, + "tx-regossip-frequency": 60000000000, + "tx-regossip-max-size": 15, + "log-level": "debug", + "offline-pruning-enabled": false, + "offline-pruning-bloom-filter-size": 512, + "offline-pruning-data-directory": "" + } \ No newline at end of file