open-webrtc-toolkit / owt-server

General server (streaming/conference/transcoding/anayltics) for OWT. (A.k.a. MediaServer)
https://01.org/open-webrtc-toolkit
Apache License 2.0
1.13k stars 368 forks source link

fix grpc missing host #1353

Open vipcxj opened 8 months ago

vipcxj commented 8 months ago

When enable grpc, owt always use default cluster host even I config the cluster.host according document. This pr fix it.

By the way, according document, to enable grpc, we should add host.cluster to components except cluster-manager. But according to the source code, cluster.grpc_host is required, too. Is any difference between cluster.host and cluster.grpc_host? Originally, I planned to add cluster.host to all the places where cluster.grpc host is used, but compiling an image takes 1 hour, which is too troublesome. Finally, I decided to add both cluster.grpc host and cluster.host to the configuration