have / work for the public rpc
This commit is contained in:
parent
9422a335a7
commit
d574ac9add
@ -22,7 +22,7 @@ public_requests_per_minute = 0
|
|||||||
response_cache_max_bytes = 10_000_000_000
|
response_cache_max_bytes = 10_000_000_000
|
||||||
|
|
||||||
[app.allowed_origin_requests_per_minute]
|
[app.allowed_origin_requests_per_minute]
|
||||||
"https://chainlist.org" = 10_000
|
"https://chainlist.org" = 1_000
|
||||||
|
|
||||||
[balanced_rpcs]
|
[balanced_rpcs]
|
||||||
|
|
||||||
|
@ -52,6 +52,8 @@ pub async fn serve(port: u16, proxy_app: Arc<Web3ProxyApp>) -> anyhow::Result<()
|
|||||||
// build our axum Router
|
// build our axum Router
|
||||||
let app = Router::new()
|
let app = Router::new()
|
||||||
// routes should be ordered most to least common
|
// routes should be ordered most to least common
|
||||||
|
.route("/", post(rpc_proxy_http::proxy_web3_rpc))
|
||||||
|
.route("/", get(rpc_proxy_ws::websocket_handler))
|
||||||
.route("/rpc", post(rpc_proxy_http::proxy_web3_rpc))
|
.route("/rpc", post(rpc_proxy_http::proxy_web3_rpc))
|
||||||
.route("/rpc", get(rpc_proxy_ws::websocket_handler))
|
.route("/rpc", get(rpc_proxy_ws::websocket_handler))
|
||||||
.route(
|
.route(
|
||||||
|
Loading…
Reference in New Issue
Block a user