From cd94ffcfd1ecfc115c624218a7cab0b02b2a9486 Mon Sep 17 00:00:00 2001 From: skiffer-git <72860476+skiffer-git@users.noreply.github.com> Date: Fri, 3 Jan 2025 14:59:01 +0800 Subject: [PATCH] Update HOW_TO_SETUP_LIVEKIT_SERVER.md --- HOW_TO_SETUP_LIVEKIT_SERVER.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/HOW_TO_SETUP_LIVEKIT_SERVER.md b/HOW_TO_SETUP_LIVEKIT_SERVER.md index a5762a13..386a45b4 100644 --- a/HOW_TO_SETUP_LIVEKIT_SERVER.md +++ b/HOW_TO_SETUP_LIVEKIT_SERVER.md @@ -33,13 +33,20 @@ docker logs livekit/livekit-server ## Configuring the LiveKit Address in OpenIM Chat -Update the `config/chat-rpc-chat.yml` file to configure the LiveKit server address: +- **If Chat is deployed from source code**, update the `config/chat-rpc-chat.yml` file to configure the LiveKit server address: ```yaml liveKit: - url: "ws://127.0.0.1:7880" # LIVEKIT_URL, LiveKit server address and port + url: "ws://127.0.0.1:7880" # ws://your-server-ip:7880 or wss://your-domain/path ``` +- **If Chat is deployed via Docker**, add the following environment variable to the `docker-compose.yaml` file: + +```yaml +CHATENV_CHAT_RPC_CHAT_LIVEKIT_URL="ws://your-server-ip:7880" # or wss://your-domain/path +``` + + By following these steps, you can set up and configure the LiveKit server for use with OpenIM Chat. ## More about Deploying LiveKi