[server]
rpc_port = 8545

[backend]
response_timeout_seconds = 1

[backends]
[backends.good]
rpc_url = "$GOOD_BACKEND_RPC_URL"
ws_url = "$GOOD_BACKEND_RPC_URL"

[backend_groups]
[backend_groups.main]
backends = ["good"]

[rpc_method_mappings]
eth_chainId = "main"
eth_foobar = "main"
eth_baz = "main"

[rate_limit]
base_rate = 2
base_interval = "1s"
exempt_origins = ["exempt_origin"]
exempt_user_agents = ["exempt_agent"]
error_message = "over rate limit with special message"

[rate_limit.method_overrides.eth_foobar]
limit = 1
interval = "1s"

[rate_limit.method_overrides.eth_baz]
limit = 1
interval = "1s"
global = true