Target reverse_proxy by env.

This commit is contained in:
Thomas E Lackey 2024-04-04 14:32:12 -05:00
parent 90d92c3e15
commit 0cd90ad3dc
2 changed files with 34 additions and 35 deletions

View File

@ -95,7 +95,6 @@ services:
restart: always restart: always
environment: environment:
CERC_ETH_RPC_ENDPOINT: ${CERC_ETH_RPC_ENDPOINT:-http://fixturenet-eth-geth-1:8545} CERC_ETH_RPC_ENDPOINT: ${CERC_ETH_RPC_ENDPOINT:-http://fixturenet-eth-geth-1:8545}
CERC_NITRO_CHAIN_URL: ${CERC_NITRO_CHAIN_URL:-ws://fixturenet-eth-geth-1:8546}
volumes: volumes:
- ../config/go-nitro-auth/caddy/Caddyfile:/etc/caddy/Caddyfile - ../config/go-nitro-auth/caddy/Caddyfile:/etc/caddy/Caddyfile
ports: ports:

View File

@ -13,7 +13,7 @@
uri /auth/{header.x-api-key} uri /auth/{header.x-api-key}
} }
rewrite * / rewrite * /
reverse_proxy https://rpc.sepolia.linea.build:443 { reverse_proxy {$CERC_ETH_RPC_ENDPOINT} {
header_up Host {upstream_hostport} header_up Host {upstream_hostport}
} }
} }
@ -27,7 +27,7 @@
uri /auth/{re.apikey.1} uri /auth/{re.apikey.1}
} }
rewrite * / rewrite * /
reverse_proxy https://rpc.sepolia.linea.build:443 { reverse_proxy {$CERC_ETH_RPC_ENDPOINT} {
header_up Host {upstream_hostport} header_up Host {upstream_hostport}
} }
} }