You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.adoc
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,29 @@ Default value is `0` (means don't wait).
94
94
shutdownGrace: 30
95
95
----
96
96
97
+
* link:grpc-spring-boot-starter/src/main/java/org/lognet/springboot/grpc/autoconfigure/GRpcServerProperties.java[Netty-specific server properties] can be specified under `grpc.netty-server` prefix. +
98
+
By configuring one of the `grpc.netty-server.xxxx` values you are implicitly setting transport to be Netty-based.
99
+
100
+
[source,yaml]
101
+
----
102
+
grpc:
103
+
netty-server:
104
+
keep-alive-time: 30s <1>
105
+
max-inbound-message-size: 10MB <2>
106
+
primary-listen-address: 10.10.15.23:0 <3>
107
+
additional-listen-addresses:
108
+
- 192.168.0.100:6767 <4>
109
+
110
+
111
+
----
112
+
<1> `Duration` type properties can be configured with string value format described https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/DurationStyle.java[here].
113
+
<2> `DataSize` type properties can be configured with string value described https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/util/unit/DataSize.html#parse-java.lang.CharSequence-[here]
114
+
<3> Exposed on external network IP with custom port.
115
+
`SocketAddress` type properties string value format:
116
+
* `host:port` (if `port` value is less than 1, uses random value)
117
+
* `host:` (uses default grpc port, `6565` )
118
+
<4> Exposed on internal network IP as well with predefined port `6767`.
119
+
97
120
The starter supports also the `in-process server`, which should be used for testing purposes :
Copy file name to clipboardExpand all lines: grpc-spring-boot-starter/src/main/java/org/lognet/springboot/grpc/autoconfigure/GRpcAutoConfiguration.java
0 commit comments