Files
ethereum-rpc-docker/rootstock/bamboo/node.conf
Claude Agent 7dc379dd05 Rootstock: include $DOMAIN in http hosts whitelist
rskj's hosts whitelist is exact-match (no wildcards). Use HOCON env-var
substitution ${?DOMAIN} to inject the per-host public domain into the
allowed list. Pass DOMAIN env var into the container via the rskj
template.

Allowed hosts list: [localhost, 127.0.0.1, ::1, ${?DOMAIN}]
- localhost variants for direct/internal access
- DOMAIN for traefik-forwarded requests (Host header = public domain)
2026-05-05 19:25:57 +00:00

39 lines
1.2 KiB
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"
# Whitelist: include localhost variants AND the public domain.
# ${?DOMAIN} is HOCON env-var sub: skipped if env var is unset.
hosts = ["localhost", "127.0.0.1", "::1", ${?DOMAIN}]
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" }
}
}