Merge branch 'main' into telackey/mm
All checks were successful
DIN Payments Stack Test / Run DIN payments stack test (pull_request) Successful in 48m47s
All checks were successful
DIN Payments Stack Test / Run DIN payments stack test (pull_request) Successful in 48m47s
This commit is contained in:
commit
fd2a2e8c72
@ -43,6 +43,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
CERC_NITRO_CHAIN_PK: ${CERC_NITRO_CHAIN_PK_BOB:-570b909da9669b2f35a0b1ac70b8358516d55ae1b5b3710e95e9a94395090597}
|
CERC_NITRO_CHAIN_PK: ${CERC_NITRO_CHAIN_PK_BOB:-570b909da9669b2f35a0b1ac70b8358516d55ae1b5b3710e95e9a94395090597}
|
||||||
CERC_NITRO_CHAIN_URL: ${CERC_NITRO_CHAIN_URL:-ws://fixturenet-eth-geth-1:8546}
|
CERC_NITRO_CHAIN_URL: ${CERC_NITRO_CHAIN_URL:-ws://fixturenet-eth-geth-1:8546}
|
||||||
|
CERC_NITRO_GETH_HTTP_URL: ${CERC_NITRO_GETH_HTTP_URL:-http://fixturenet-eth-geth-1:8545}
|
||||||
CERC_NA_ADDRESS: ${CERC_NA_ADDRESS}
|
CERC_NA_ADDRESS: ${CERC_NA_ADDRESS}
|
||||||
CERC_VPA_ADDRESS: ${CERC_VPA_ADDRESS}
|
CERC_VPA_ADDRESS: ${CERC_VPA_ADDRESS}
|
||||||
CERC_CA_ADDRESS: ${CERC_CA_ADDRESS}
|
CERC_CA_ADDRESS: ${CERC_CA_ADDRESS}
|
||||||
|
@ -3,8 +3,13 @@
|
|||||||
reverse_proxy http://go-nitro-bob:8547
|
reverse_proxy http://go-nitro-bob:8547
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handle /nitro/pay* {
|
||||||
|
uri strip_prefix /nitro
|
||||||
|
reverse_proxy http://go-nitro-bob:8547
|
||||||
|
}
|
||||||
|
|
||||||
@eth-key-in-header {
|
@eth-key-in-header {
|
||||||
path_regexp /eth/?$
|
path_regexp (/nitro)?/eth/?$
|
||||||
header X-Api-Key *
|
header X-Api-Key *
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -20,12 +25,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@eth-key-in-path {
|
@eth-key-in-path {
|
||||||
path_regexp apikey eth/(.+)$
|
path_regexp apikey (/nitro)?/eth/(.+)$
|
||||||
}
|
}
|
||||||
|
|
||||||
handle @eth-key-in-path {
|
handle @eth-key-in-path {
|
||||||
forward_auth go-nitro-bob:8547 {
|
forward_auth go-nitro-bob:8547 {
|
||||||
uri /auth/{re.apikey.1}
|
uri /auth/{re.apikey.2}
|
||||||
}
|
}
|
||||||
rewrite * /
|
rewrite * /
|
||||||
reverse_proxy {$CERC_ETH_RPC_ENDPOINT} {
|
reverse_proxy {$CERC_ETH_RPC_ENDPOINT} {
|
||||||
@ -34,8 +39,20 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handle /nitro/eth {
|
||||||
|
rewrite * /
|
||||||
|
reverse_proxy go-nitro-bob:8547 {
|
||||||
|
header_up Host {upstream_hostport}
|
||||||
|
header_up -X-Forwarded-*
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
handle /eth* {
|
handle /eth* {
|
||||||
respond "401 Unauthorized" 401
|
rewrite * /
|
||||||
|
reverse_proxy go-nitro-bob:8547 {
|
||||||
|
header_up Host {upstream_hostport}
|
||||||
|
header_up -X-Forwarded-*
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handle /ts-nitro* {
|
handle /ts-nitro* {
|
||||||
|
Loading…
Reference in New Issue
Block a user