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
{{ message }}
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: doc/servermd/EnableGRPC.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ By default, OWT[Open WebRTC Toolkit](https://github.com/open-webrtc-toolkit/owt-
10
10
11
11
# 2 Enable gRPC for internal RPC
12
12
13
-
In OWT server package, you can turn on gRPC option by updating configuration files. This section in troduces the configuration settings for internal gRPC.
13
+
In OWT server package, you can turn on gRPC option by updating configuration files. This section introduces the configuration settings for internal gRPC.
14
14
15
15
# 2.1 Configuration for gRPC
16
16
@@ -34,17 +34,25 @@ Set the item `enable_grpc` to `true` in these configuration files.
34
34
35
35
enable_grpc = true
36
36
37
-
In `cluster_manager/cluster_manager.toml`, set `grpc_host` with `IP|hostname:port` of your own(when using TLS, only hostname is allowed).
37
+
In `cluster_manager/cluster_manager.toml`, set `grpc_host`of section `[manager]`with `IP|hostname:port` of your own(when using TLS, only hostname is allowed).
38
38
39
+
[manager]
39
40
grpc_host = "localhost:10080"
40
41
41
-
In other modules' toml files, edit `grpc_host` to the value of `cluster_manager`.
42
+
In other modules' toml files, edit `host` of section `[cluster]` to the value of `cluster_manager`.
42
43
43
-
grpc_host = "localhost:10080"
44
+
[cluster]
45
+
host = "localhost:10080"
46
+
47
+
And to specify hostname of other modules' gRPC service, add following section in toml files.
48
+
49
+
[cluster.worker]
50
+
ip="localhost" # You could also set hostname here. E.g, ip="myhost.com"
44
51
45
52
If you want to enable HTTP proxy for gRPC, set environment variable `GRPC_ARG_HTTP_PROXY` to `1`, then system proxy will be used.
46
53
47
54
Restart OWT service after above configuration files being updated.
55
+
Note that RabbitMQ based RPC server will be disabled if gRPC is used.
0 commit comments