This commit is contained in:
Sebastian
2024-10-24 08:16:28 +02:00
parent 2bc376f8e8
commit 1ddebffc49
2 changed files with 25 additions and 1 deletions

View File

@@ -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;
}
}

View File

@@ -52,6 +52,7 @@ services:
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- taiko - taiko
- taiko-beacon-proxy
environment: environment:
- "TAIKO_L1_ADDRESS=0x06a9Ab27c7e2255df1815E6CC0168d7755Feb19a" - "TAIKO_L1_ADDRESS=0x06a9Ab27c7e2255df1815E6CC0168d7755Feb19a"
- "TAIKO_TOKEN_L1_ADDRESS=0x10dea67478c5F8C5E2D90e5E9B26dBe60c54d800" - "TAIKO_TOKEN_L1_ADDRESS=0x10dea67478c5F8C5E2D90e5E9B26dBe60c54d800"
@@ -59,7 +60,7 @@ services:
- "TAIKO_L2_ADDRESS=0x1670000000000000000000000000000000010001" - "TAIKO_L2_ADDRESS=0x1670000000000000000000000000000000010001"
- "L1_ENDPOINT_HTTP=${TAIKO_MAINNET_EXECUTION_RPC}" - "L1_ENDPOINT_HTTP=${TAIKO_MAINNET_EXECUTION_RPC}"
- "L1_ENDPOINT_WS=${TAIKO_MAINNET_EXECUTION_WS}" - "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" - "L2_CHECKPOINT_SYNC_RPC=https://rpc.mainnet.taiko.xyz"
volumes: volumes:
- taiko:/data/taiko-geth - taiko:/data/taiko-geth
@@ -71,5 +72,17 @@ services:
networks: networks:
- chains - 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: volumes:
taiko: taiko: