diff --git a/config/example.toml b/config/example.toml index dc3675ab..35b6a2e6 100644 --- a/config/example.toml +++ b/config/example.toml @@ -22,7 +22,7 @@ public_requests_per_minute = 0 response_cache_max_bytes = 10_000_000_000 [app.allowed_origin_requests_per_minute] -"https://chainlist.org" = 10_000 +"https://chainlist.org" = 1_000 [balanced_rpcs] diff --git a/web3_proxy/src/frontend/mod.rs b/web3_proxy/src/frontend/mod.rs index 961cf9c9..bdd2d87f 100644 --- a/web3_proxy/src/frontend/mod.rs +++ b/web3_proxy/src/frontend/mod.rs @@ -52,6 +52,8 @@ pub async fn serve(port: u16, proxy_app: Arc) -> anyhow::Result<() // build our axum Router let app = Router::new() // 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", get(rpc_proxy_ws::websocket_handler)) .route(