From ae3dc849e4bda3d56d74c49fc3f0155da6e9a424 Mon Sep 17 00:00:00 2001 From: cventastic Date: Mon, 5 Sep 2022 10:16:58 +0200 Subject: [PATCH] added beaconchain api and traefik to lighthouse --- erigon.yml | 10 ++++++++++ geth-mainnet.yml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/erigon.yml b/erigon.yml index a6ecd0d8..7b815506 100644 --- a/erigon.yml +++ b/erigon.yml @@ -66,8 +66,18 @@ services: --eth1-endpoints http://erigon-trace:8545 --execution-endpoint http://erigon-trace:8551 --execution-jwt /jwtsecret + --http + --http-address=* networks: - chains + labels: + - "traefik.enable=true" + - "traefik.http.middlewares.lighthouse-stripprefix.stripprefix.prefixes=/lighthouse" + - "traefik.http.services.lighthouse.loadbalancer.server.port=8545" + - "traefik.http.routers.lighthouse.entrypoints=websecure" + - "traefik.http.routers.lighthouse.tls.certresolver=myresolver" + - "traefik.http.routers.lighthouse.rule=Host(`$DOMAIN`) && PathPrefix(`/lighthouse`)" + - "traefik.http.routers.lighthouse.middlewares=lighthouse-stripprefix, ipwhitelist" volumes: erigon-trace: diff --git a/geth-mainnet.yml b/geth-mainnet.yml index 0ee45937..9b66855b 100644 --- a/geth-mainnet.yml +++ b/geth-mainnet.yml @@ -31,7 +31,7 @@ services: # Ethereum mainnet "--mainnet", # Maximum number of network peers (network disabled if set to 0) (default: 50) - "--maxpeers=30" + "--maxpeers=30" ] networks: - chains