Skip to content

Configuration ​

On top of the common configuration (see Configuration), a gRPC application is tuned with the [grpc] section.

[grpc] section ​

KeyTypeDefaultDescription
hostString"0.0.0.0"gRPC server host
portu1650051gRPC server port
body-limitGrpcBodyLimitConfig4MBSize 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 like grpcurl. See Reflection.