Configuration
On top of the common configuration (see Configuration), a gRPC application is tuned with the [grpc] section.
[grpc] section
| Key | Type | Default | Description |
|---|---|---|---|
host | String | "0.0.0.0" | gRPC server host |
port | u16 | 50051 | gRPC server port |
body-limit | GrpcBodyLimitConfig | 4MB | Size limit for incoming and outgoing gRPC messages |
TOML example
toml
[grpc]
host = "0.0.0.0"
port = 50051
body-limit = { max-decoding-message-size = "4MB", max-encoding-message-size = "4MB" }Additional settings
- Access logger (
[grpc.logger]): see Access Logger. - Reflection (Cargo feature
grpc-reflection): exposes the descriptor to introspection clients likegrpcurl. See Reflection.

