2022-10-19 02:31:40 +03:00
|
|
|
[app]
|
2022-05-12 21:49:57 +03:00
|
|
|
chain_id = 1
|
2022-10-07 05:15:53 +03:00
|
|
|
|
2022-11-13 21:39:49 +03:00
|
|
|
# a database is optional. it is used for user authentication and accounting
|
2022-09-03 05:59:30 +03:00
|
|
|
# TODO: how do we find the optimal db_max_connections? too high actually ends up being slower
|
2022-09-02 23:16:20 +03:00
|
|
|
db_max_connections = 99
|
2022-11-13 21:39:49 +03:00
|
|
|
db_url = "mysql://root:dev_web3_proxy@127.0.0.1:13306/dev_web3_proxy"
|
2022-10-07 05:15:53 +03:00
|
|
|
|
2022-10-21 23:59:05 +03:00
|
|
|
min_sum_soft_limit = 2_000
|
2022-08-27 05:13:36 +03:00
|
|
|
min_synced_rpcs = 2
|
2022-10-07 05:15:53 +03:00
|
|
|
|
2022-11-13 21:39:49 +03:00
|
|
|
# redis is optional. it is used for rate limits set by `hard_limit`
|
2022-09-03 05:59:30 +03:00
|
|
|
# TODO: how do we find the optimal redis_max_connections? too high actually ends up being slower
|
2022-10-07 05:15:53 +03:00
|
|
|
volatile_redis_max_connections = 300
|
2022-11-13 23:29:33 +03:00
|
|
|
volatile_redis_url = "redis://127.0.0.1:16379/"
|
2022-10-07 05:15:53 +03:00
|
|
|
|
2022-11-08 01:10:19 +03:00
|
|
|
redirect_public_url = "https://llamanodes.com/public-rpc"
|
2022-11-13 21:39:49 +03:00
|
|
|
# redirect_rpc_key_url only does something if db_url is set
|
2022-11-12 00:16:32 +03:00
|
|
|
redirect_rpc_key_url = "https://llamanodes.com/dashboard/keys?key={rpc_key_id}"
|
2022-10-07 05:15:53 +03:00
|
|
|
|
2022-11-13 21:39:49 +03:00
|
|
|
# sentry is optional. it is used for browsing error logs
|
|
|
|
# sentry_url = "https://SENTRY_KEY_A.ingest.sentry.io/SENTRY_KEY_B"
|
2022-11-04 01:16:27 +03:00
|
|
|
|
2022-11-08 22:58:11 +03:00
|
|
|
# public limits are when no key is used. these are instead grouped by ip
|
2022-10-25 07:34:24 +03:00
|
|
|
# 0 = block all public requests
|
2022-11-08 01:10:19 +03:00
|
|
|
public_max_concurrent_requests = 3
|
2022-10-19 02:31:40 +03:00
|
|
|
# 0 = block all public requests
|
2022-11-08 01:10:19 +03:00
|
|
|
public_requests_per_period = 200
|
2022-10-07 05:15:53 +03:00
|
|
|
|
2022-11-08 01:10:19 +03:00
|
|
|
# 10GB of cache
|
2022-10-21 23:59:05 +03:00
|
|
|
response_cache_max_bytes = 10_000_000_000
|
|
|
|
|
2022-11-13 21:39:49 +03:00
|
|
|
# allowed_origin_requests_per_period changes the min_sum_soft_limit for requests with the specified (AND SPOOFABLE) Origin header
|
2022-11-01 22:24:29 +03:00
|
|
|
[app.allowed_origin_requests_per_period]
|
2022-10-22 00:12:05 +03:00
|
|
|
"https://chainlist.org" = 1_000
|
2022-05-12 21:49:57 +03:00
|
|
|
|
2022-05-13 23:50:11 +03:00
|
|
|
[balanced_rpcs]
|
2022-05-06 04:40:43 +03:00
|
|
|
|
2022-06-25 05:24:31 +03:00
|
|
|
[balanced_rpcs.ankr]
|
|
|
|
url = "https://rpc.ankr.com/eth"
|
|
|
|
soft_limit = 1_000
|
2022-08-08 22:57:54 +03:00
|
|
|
weight = 0
|
2022-05-18 19:35:06 +03:00
|
|
|
|
2022-06-25 05:24:31 +03:00
|
|
|
[balanced_rpcs.cloudflare]
|
|
|
|
url = "https://cloudflare-eth.com"
|
|
|
|
soft_limit = 1_000
|
2022-08-08 22:57:54 +03:00
|
|
|
weight = 0
|
2022-05-12 22:58:26 +03:00
|
|
|
|
2022-06-25 05:24:31 +03:00
|
|
|
[balanced_rpcs.blastapi]
|
|
|
|
url = "https://eth-mainnet.public.blastapi.io"
|
|
|
|
soft_limit = 1_000
|
2022-08-08 22:57:54 +03:00
|
|
|
weight = 0
|
2022-06-25 05:24:31 +03:00
|
|
|
|
2022-11-04 07:40:39 +03:00
|
|
|
[balanced_rpcs.mycryptoapi]
|
|
|
|
disabled = true
|
|
|
|
url = "https://api.mycryptoapi.com/eth"
|
|
|
|
soft_limit = 1_000
|
|
|
|
weight = 0
|
2022-06-25 05:24:31 +03:00
|
|
|
|
|
|
|
[balanced_rpcs.runonflux]
|
|
|
|
url = "https://ethereumnodelight.app.runonflux.io"
|
|
|
|
soft_limit = 1_000
|
2022-08-08 22:57:54 +03:00
|
|
|
weight = 1
|
2022-06-25 05:24:31 +03:00
|
|
|
|
|
|
|
[balanced_rpcs.pokt-v1]
|
|
|
|
url = "https://eth-mainnet.gateway.pokt.network/v1/5f3453978e354ab992c4da79"
|
2022-08-27 05:13:36 +03:00
|
|
|
soft_limit = 500
|
2022-08-08 22:57:54 +03:00
|
|
|
weight = 1
|
2022-06-25 05:24:31 +03:00
|
|
|
|
|
|
|
[balanced_rpcs.pokt]
|
|
|
|
url = "https://eth-rpc.gateway.pokt.network"
|
2022-08-27 05:13:36 +03:00
|
|
|
soft_limit = 500
|
2022-08-08 22:57:54 +03:00
|
|
|
weight = 1
|
2022-06-25 05:24:31 +03:00
|
|
|
|
|
|
|
[balanced_rpcs.linkpool]
|
|
|
|
url = "https://main-rpc.linkpool.io"
|
2022-08-27 05:13:36 +03:00
|
|
|
soft_limit = 500
|
2022-08-08 22:57:54 +03:00
|
|
|
weight = 2
|
2022-05-12 04:38:27 +03:00
|
|
|
|
2022-08-27 05:13:36 +03:00
|
|
|
# load balanced light nodes are not very reliable
|
2022-11-04 07:40:39 +03:00
|
|
|
[balanced_rpcs.linkpool-light]
|
|
|
|
disabled = true
|
|
|
|
url = "https://main-light.eth.linkpool.io"
|
|
|
|
soft_limit = 100
|
|
|
|
weight = 3
|
2022-08-27 05:13:36 +03:00
|
|
|
|
2022-05-12 04:36:37 +03:00
|
|
|
[private_rpcs]
|
2022-06-25 05:24:31 +03:00
|
|
|
|
2022-10-06 23:21:16 +03:00
|
|
|
# these worked well on ETH 1.0, but 2.0 ends up not working as well. we will re-assess as more validators turn on private transactions
|
|
|
|
|
2022-10-19 02:27:33 +03:00
|
|
|
[private_rpcs.eden]
|
|
|
|
disabled = true
|
2022-06-25 05:24:31 +03:00
|
|
|
url = "https://api.edennetwork.io/v1/"
|
|
|
|
soft_limit = 1_805
|
2022-08-11 05:56:28 +03:00
|
|
|
weight = 0
|
2022-06-25 05:24:31 +03:00
|
|
|
|
2022-10-19 02:27:33 +03:00
|
|
|
[private_rpcs.eden_beta]
|
|
|
|
disabled = true
|
2022-06-25 05:24:31 +03:00
|
|
|
url = "https://api.edennetwork.io/v1/beta"
|
|
|
|
soft_limit = 5_861
|
2022-08-11 05:56:28 +03:00
|
|
|
weight = 0
|
2022-06-25 05:24:31 +03:00
|
|
|
|
2022-10-19 02:27:33 +03:00
|
|
|
[private_rpcs.ethermine]
|
|
|
|
disabled = true
|
2022-06-25 05:24:31 +03:00
|
|
|
url = "https://rpc.ethermine.org"
|
|
|
|
soft_limit = 5_861
|
2022-08-11 05:56:28 +03:00
|
|
|
weight = 0
|
2022-06-25 05:24:31 +03:00
|
|
|
|
2022-10-19 02:27:33 +03:00
|
|
|
[private_rpcs.flashbots]
|
|
|
|
disabled = true
|
2022-07-16 07:54:05 +03:00
|
|
|
url = "https://rpc.flashbots.net/fast"
|
2022-10-21 23:59:05 +03:00
|
|
|
soft_limit = 7_074
|
2022-08-11 05:56:28 +03:00
|
|
|
weight = 0
|
2022-06-25 05:24:31 +03:00
|
|
|
|
2022-10-19 02:27:33 +03:00
|
|
|
[private_rpcs.securerpc]
|
|
|
|
disabled = true
|
2022-06-25 05:24:31 +03:00
|
|
|
url = "https://gibson.securerpc.com/v1"
|
2022-10-21 23:59:05 +03:00
|
|
|
soft_limit = 4_560
|
2022-08-11 05:56:28 +03:00
|
|
|
weight = 0
|