2022-05-04 15:51:24 -06:00
|
|
|
[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]
|
2022-08-04 11:34:43 -06:00
|
|
|
eth_chainId = "main"
|
2022-09-15 10:46:11 +02:00
|
|
|
eth_foobar = "main"
|
2023-02-15 00:42:44 -07:00
|
|
|
eth_baz = "main"
|
2022-08-04 11:34:43 -06:00
|
|
|
|
|
|
|
[rate_limit]
|
2022-10-09 15:26:27 -05:00
|
|
|
base_rate = 2
|
|
|
|
base_interval = "1s"
|
2022-08-04 11:34:43 -06:00
|
|
|
exempt_origins = ["exempt_origin"]
|
|
|
|
exempt_user_agents = ["exempt_agent"]
|
2022-09-19 18:44:08 +02:00
|
|
|
error_message = "over rate limit with special message"
|
2022-09-15 10:46:11 +02:00
|
|
|
|
|
|
|
[rate_limit.method_overrides.eth_foobar]
|
|
|
|
limit = 1
|
2023-02-15 00:42:44 -07:00
|
|
|
interval = "1s"
|
|
|
|
|
|
|
|
[rate_limit.method_overrides.eth_baz]
|
|
|
|
limit = 1
|
|
|
|
interval = "1s"
|
|
|
|
global = true
|