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