diff --git a/linea-besu.cfg b/linea-besu.cfg new file mode 100644 index 00000000..e856e7ce --- /dev/null +++ b/linea-besu.cfg @@ -0,0 +1,20 @@ + - id: ${ID} + chain: ${CHAIN} + labels: + provider: ${PROVIDER} + method-groups: + enabled: + - debug + - filter + - trace + methods: + enabled: + - name: txpool_content + connection: + generic: + rpc: + url: "${RPC_URL}" + ws: + frameSize: 20Mb + msgSize: 50Mb + url: "${WS_URL}" diff --git a/linea-besu.yml b/linea-besu.yml index d26545cb..e05a8d3d 100644 --- a/linea-besu.yml +++ b/linea-besu.yml @@ -1,9 +1,10 @@ services: - besu-mainnet-node: + linea-besu-fullnode: image: hyperledger/besu:latest command: --config-file=/config/config-snap-mainnet.toml --genesis-file=/config/genesis-mainnet.json --p2p-host=${IP} + user: root ports: - 2483:2483 networks: @@ -12,7 +13,23 @@ services: - linea-besu-fullnode:/db - ./linea/besu/config:/config restart: unless-stopped - stop_grace_period: 1m + stop_grace_period: 5m + + linea-besu-fullnode-proxy: + restart: unless-stopped + image: nginx + depends_on: + - mantle-fullnode + expose: + - 80 + environment: + PROXY_HOST: linea-besu-fullnode + RPC_PORT: 8545 + WS_PORT: 8546 + networks: + - chains + volumes: + - ./nginx-proxy:/etc/nginx/templates labels: - "traefik.enable=true" - "traefik.http.middlewares.linea-besu-stripprefix.stripprefix.prefixes=/linea-besu" diff --git a/linea/besu/config/config-snap-mainnet.toml b/linea/besu/config/config-snap-mainnet.toml index 709251c3..dac6d8af 100644 --- a/linea/besu/config/config-snap-mainnet.toml +++ b/linea/besu/config/config-snap-mainnet.toml @@ -25,7 +25,7 @@ host-whitelist=["*"] rpc-http-enabled=true rpc-http-host="0.0.0.0" rpc-http-port=8545 -rpc-http-api=["ADMIN","NET","ETH","WEB3","TXPOOL","DEBUG","TRACE"] +rpc-http-api=["NET","ETH","WEB3","TXPOOL","DEBUG","TRACE"] rpc-http-cors-origins=["all"] rpc-http-max-active-connections=20000 @@ -34,7 +34,7 @@ rpc-http-max-active-connections=20000 rpc-ws-enabled=true rpc-ws-api=["NET","ETH","WEB3"] rpc-ws-host="0.0.0.0" -rpc-ws-port=8545 +rpc-ws-port=8546 # graphql graphql-http-enabled=true diff --git a/reth-mainnet.cfg b/reth-mainnet.cfg new file mode 100644 index 00000000..e856e7ce --- /dev/null +++ b/reth-mainnet.cfg @@ -0,0 +1,20 @@ + - id: ${ID} + chain: ${CHAIN} + labels: + provider: ${PROVIDER} + method-groups: + enabled: + - debug + - filter + - trace + methods: + enabled: + - name: txpool_content + connection: + generic: + rpc: + url: "${RPC_URL}" + ws: + frameSize: 20Mb + msgSize: 50Mb + url: "${WS_URL}"