diff --git a/docs/resources/node-and-rpc-setup-notes.md b/docs/resources/node-and-rpc-setup-notes.md index fbf95495..6a26ebf9 100644 --- a/docs/resources/node-and-rpc-setup-notes.md +++ b/docs/resources/node-and-rpc-setup-notes.md @@ -13,7 +13,7 @@ $ sed -i.bak -E 's#^(timeout_commit[[:space:]]+=[[:space:]]+).*$#\1"5s"#' ~/.cro ``` -### Enable API and gRPC server +### Enable API server Edit `~/.cronos/config/app.toml` and update the following section ```toml @@ -27,16 +27,20 @@ swagger = true # Address defines the API server to listen on. address = "tcp://0.0.0.0:1317" +``` + +### Disable gRPC server on public nodes -... +:::warning Recommendation: +We recommend to disable gRPC server on public nodes to reduce the attack vector +::: +Edit `~/.cronos/config/app.toml` and update the following section +```toml [grpc] # Enable defines if the gRPC server should be enabled. -enable = true - -# Address defines the gRPC server address to bind to. -address = "0.0.0.0:9090" +enable = false ``` ### Start the node