From c5671b50c32a1516aa004c935af99549b3320e88 Mon Sep 17 00:00:00 2001 From: Para Dox Date: Mon, 19 May 2025 21:33:29 +0700 Subject: [PATCH] force it --- ...p-mainnet-op-geth-archive-leveldb-hash.yml | 26 +++++++++++++++++-- ...op-mainnet-l2geth-archive-leveldb-hash.yml | 26 +++++++++++++++++-- op/op/mainnet/l2geth.env | 13 ++++++++-- 3 files changed, 59 insertions(+), 6 deletions(-) diff --git a/op/geth/op-mainnet-op-geth-archive-leveldb-hash.yml b/op/geth/op-mainnet-op-geth-archive-leveldb-hash.yml index 2b9b2d1b..71a346dc 100644 --- a/op/geth/op-mainnet-op-geth-archive-leveldb-hash.yml +++ b/op/geth/op-mainnet-op-geth-archive-leveldb-hash.yml @@ -155,7 +155,7 @@ services: - prometheus-scrape.port=7300 - prometheus-scrape.path=/metrics - op-mainnet-l2geth-archive: + op-mainnet-l2geth-archive-client: image: ${OP_L2GETH_IMAGE:-ethereumoptimism/l2geth}:${OP_MAINNET_L2GETH_VERSION:-0.5.31} sysctls: # TCP Performance @@ -176,6 +176,7 @@ services: - 12952:12952/udp expose: - 8545 + - 8546 env_file: - ./op/op/mainnet/l2geth.env environment: @@ -206,7 +207,7 @@ services: - ${OP_MAINNET_L2GETH_ARCHIVE_LEVELDB_HASH_DATA:-op-mainnet-l2geth-archive-leveldb-hash}:/geth - ./op/op/mainnet:/config - /slowdisk:/slowdisk - logging: + logging: &logging-defaults driver: json-file options: max-size: 10m @@ -214,6 +215,27 @@ services: labels: - prometheus-scrape.enabled=false + op-mainnet-l2geth-archive: + image: nginx + expose: + - '80' + environment: + PROXY_HOST: op-mainnet-l2geth-archive-client + RPC_PATH: '' + RPC_PORT: 8545 + WS_PATH: '' + WS_PORT: 8546 + restart: unless-stopped + depends_on: + - op-mainnet-l2geth-archive-client + networks: + - chains + volumes: + - ./nginx-proxy:/etc/nginx/templates + logging: *logging-defaults + labels: + - prometheus-scrape.enabled=false + volumes: op-mainnet-l2geth-archive-leveldb-hash: op-mainnet-op-geth-archive-leveldb-hash: diff --git a/op/l2geth/op-mainnet-l2geth-archive-leveldb-hash.yml b/op/l2geth/op-mainnet-l2geth-archive-leveldb-hash.yml index 08e0b77a..09014aa3 100644 --- a/op/l2geth/op-mainnet-l2geth-archive-leveldb-hash.yml +++ b/op/l2geth/op-mainnet-l2geth-archive-leveldb-hash.yml @@ -29,7 +29,7 @@ x-logging-defaults: &logging-defaults max-file: '3' services: - op-mainnet-l2geth-archive: + op-mainnet-l2geth-archive-client: image: ${OP_L2GETH_IMAGE:-ethereumoptimism/l2geth}:${OP_MAINNET_L2GETH_VERSION:-0.5.31} sysctls: # TCP Performance @@ -50,6 +50,7 @@ services: - 12952:12952/udp expose: - 8545 + - 8546 env_file: - ./op/op/mainnet/l2geth.env environment: @@ -83,9 +84,30 @@ services: logging: *logging-defaults labels: - prometheus-scrape.enabled=false + + op-mainnet-l2geth-archive: + image: nginx + expose: + - '80' + environment: + PROXY_HOST: op-mainnet-l2geth-archive-client + RPC_PATH: '' + RPC_PORT: 8545 + WS_PATH: '' + WS_PORT: 8546 + restart: unless-stopped + depends_on: + - op-mainnet-l2geth-archive-client + networks: + - chains + volumes: + - ./nginx-proxy:/etc/nginx/templates + logging: *logging-defaults + labels: + - prometheus-scrape.enabled=false - traefik.enable=true - traefik.http.middlewares.op-mainnet-l2geth-archive-leveldb-hash-stripprefix.stripprefix.prefixes=/op-mainnet-l2geth-archive - - traefik.http.services.op-mainnet-l2geth-archive-leveldb-hash.loadbalancer.server.port=8545 + - traefik.http.services.op-mainnet-l2geth-archive-leveldb-hash.loadbalancer.server.port=80 - ${NO_SSL:-traefik.http.routers.op-mainnet-l2geth-archive-leveldb-hash.entrypoints=websecure} - ${NO_SSL:-traefik.http.routers.op-mainnet-l2geth-archive-leveldb-hash.tls.certresolver=myresolver} - ${NO_SSL:-traefik.http.routers.op-mainnet-l2geth-archive-leveldb-hash.rule=Host(`$DOMAIN`) && (Path(`/op-mainnet-l2geth-archive`) || Path(`/op-mainnet-l2geth-archive/`))} diff --git a/op/op/mainnet/l2geth.env b/op/op/mainnet/l2geth.env index 1c91d5be..9ef77e49 100644 --- a/op/op/mainnet/l2geth.env +++ b/op/op/mainnet/l2geth.env @@ -1,16 +1,25 @@ +############################################################################### +# ↓ OPTIMISM OPTIONS ↓ # +############################################################################### + USING_OVM=true SEQUENCER_CLIENT_HTTP=https://mainnet.optimism.io BLOCK_SIGNER_ADDRESS=0x00000398232E2064F896018496b4b44b3D62751F BLOCK_SIGNER_PRIVATE_KEY=6587ae678cf4fc9a33000cdbf9f35226b71dcc6a4684a31203241f9bcfd55d27 BLOCK_SIGNER_PRIVATE_KEY_PASSWORD=pwd ETH1_CTC_DEPLOYMENT_HEIGHT=13596466 -ETH1_SYNC_SERVICE_ENABLE=true +ETH1_SYNC_SERVICE_ENABLE=false L2GETH_GENESIS_URL=https://storage.googleapis.com/optimism/mainnet/genesis-berlin.json L2GETH_GENESIS_HASH=0x106b0a3247ca54714381b1109e82cc6b7e32fd79ae56fbcc2e7b1541122f84ea ROLLUP_CLIENT_HTTP=http://optimism-dtl:7878 ROLLUP_MAX_CALLDATA_SIZE=40000 ROLLUP_POLL_INTERVAL_FLAG=1s -ROLLUP_VERIFIER_ENABLE=true +ROLLUP_VERIFIER_ENABLE=false + +############################################################################### +# ↓ STANDARD OPTIONS ↓ # +############################################################################### + DATADIR=/geth CHAIN_ID=10 NETWORK_ID=10