Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: gRPC server should not be recommended to be enabled by default #80

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions docs/resources/node-and-rpc-setup-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down