VETIVER-9.0.1 enforces rpc.providers.web.http.hosts as a whitelist; empty list / default rejects everything except 'Host: localhost'. The traefik route uses 'customrequestheaders.Host=localhost' middleware to rewrite the Host header, but that middleware appears not to be applied for the rootstock route - real requests still arrive at rskj with Host: rpc-de-XX.stakesquid.eu and rskj returns 400 Bad Request, which traefik translates to 502 Bad Gateway. Wildcard whitelist is fine here because traefik (with ipallowlist middleware) is the actual gatekeeper. Confirmed empirically: 'wget --header=Host:localhost' returns valid JSON-RPC, anything else returns 400.
37 lines
998 B
Plaintext
37 lines
998 B
Plaintext
blockchain.config.name = "testnet"
|
|
|
|
database.dir = /var/lib/rsk/database/testnet
|
|
|
|
peer.port = 16093
|
|
|
|
rpc {
|
|
providers = {
|
|
web = {
|
|
cors = "*"
|
|
http = {
|
|
enabled = true
|
|
bind_address = "0.0.0.0"
|
|
hosts = ["*"]
|
|
port = 8545
|
|
}
|
|
ws = {
|
|
enabled = true
|
|
bind_address = "0.0.0.0"
|
|
port = 8546
|
|
}
|
|
}
|
|
}
|
|
|
|
modules = {
|
|
eth { version = "1.0", enabled = "true" }
|
|
net { version = "1.0", enabled = "true" }
|
|
rpc { version = "1.0", enabled = "true" }
|
|
web3 { version = "1.0", enabled = "true" }
|
|
evm { version = "1.0", enabled = "true" }
|
|
sco { version = "1.0", enabled = "true" }
|
|
txpool { version = "1.0", enabled = "true" }
|
|
debug { version = "1.0", enabled = "true" }
|
|
personal { version = "1.0", enabled = "true" }
|
|
}
|
|
}
|