From 1ddebffc49214ea513c41e31ccc0861ca4a27039 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Thu, 24 Oct 2024 08:16:28 +0200 Subject: [PATCH] fix --- nginx-forwarder/default.conf.template | 11 +++++++++++ taiko.yml | 15 ++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 nginx-forwarder/default.conf.template diff --git a/nginx-forwarder/default.conf.template b/nginx-forwarder/default.conf.template new file mode 100644 index 00000000..17c2abbd --- /dev/null +++ b/nginx-forwarder/default.conf.template @@ -0,0 +1,11 @@ +server { + listen 80; + + location / { + proxy_pass ${TARGET_URL}; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } +} \ No newline at end of file diff --git a/taiko.yml b/taiko.yml index d7964603..30372814 100644 --- a/taiko.yml +++ b/taiko.yml @@ -52,6 +52,7 @@ services: restart: unless-stopped depends_on: - taiko + - taiko-beacon-proxy environment: - "TAIKO_L1_ADDRESS=0x06a9Ab27c7e2255df1815E6CC0168d7755Feb19a" - "TAIKO_TOKEN_L1_ADDRESS=0x10dea67478c5F8C5E2D90e5E9B26dBe60c54d800" @@ -59,7 +60,7 @@ services: - "TAIKO_L2_ADDRESS=0x1670000000000000000000000000000000010001" - "L1_ENDPOINT_HTTP=${TAIKO_MAINNET_EXECUTION_RPC}" - "L1_ENDPOINT_WS=${TAIKO_MAINNET_EXECUTION_WS}" - - "L1_BEACON_HTTP=${TAIKO_MAINNET_BEACON_REST}" + - "L1_BEACON_HTTP=http://taiko-beacon-proxy/" - "L2_CHECKPOINT_SYNC_RPC=https://rpc.mainnet.taiko.xyz" volumes: - taiko:/data/taiko-geth @@ -70,6 +71,18 @@ services: - "/script/start-driver.sh" networks: - chains + + taiko-beacon-proxy: + restart: unless-stopped + expose: + - 80 + environment: + TARGET_URL: ${TAIKO_MAINNET_BEACON_REST} + networks: + - chains + volumes: + - ./nginx-forwarder:/etc/nginx/templates + volumes: taiko: