diff --git a/event_sync/README.md b/event_sync/README.md index 75d4464..8340c60 100644 --- a/event_sync/README.md +++ b/event_sync/README.md @@ -165,7 +165,7 @@ be destroyed when the main room and all associated breakout rooms are empty. _/etc/prosody/conf.d/meet.mydomain.com.cfg.lua_ ```lua - Component "event_sync.meet.mydomain.com" "event_sync_component" + Component "esync.meet.mydomain.com" "event_sync_component" muc_component = "conference.meet.mydomain.com" api_prefix = "http://your.api.server/api" ``` @@ -181,12 +181,12 @@ be destroyed when the main room and all associated breakout rooms are empty. Here's an example of the prosody config with optional configs values set: ```lua -Component "event_sync.meet.mydomain.com" "event_sync_component" +Component "esync.meet.mydomain.com" "event_sync_component" muc_component = "conference.meet.mydomain.com" breakout_component = "breakout.meet.mydomain.com" api_prefix = "http://your.api.server/api" - + --- The following are all optional api_headers = { ["Authorization"] = "Bearer TOKEN-237958623045"; @@ -194,12 +194,12 @@ Component "event_sync.meet.mydomain.com" "event_sync_component" api_timeout = 10 -- timeout if API does not respond within 10s api_retry_count = 5 -- retry up to 5 times api_retry_delay = 1 -- wait 1s between retries - + -- change retry rules so we also retry if endpoint returns HTTP 408 api_should_retry_for_code = function (code) return code >= 500 or code == 408 end - + -- Optionally include total_dominant_speaker_time (milliseconds) in payload for occupant-left and room-destroyed include_speaker_stats = true ``` diff --git a/event_sync/mod_event_sync_component.lua b/event_sync/mod_event_sync_component.lua index e5025ed..4680812 100644 --- a/event_sync/mod_event_sync_component.lua +++ b/event_sync/mod_event_sync_component.lua @@ -2,9 +2,9 @@ -- -- Example config: -- --- Component "event_sync.mydomain.com" "event_sync_component" --- muc_component = "conference.mydomain.com" --- breakout_component = "breakout.mydomain.com" +-- Component "esync.meet.mydomain.com" "event_sync_component" +-- muc_component = "conference.meet.mydomain.com" +-- breakout_component = "breakout.meet.mydomain.com" -- -- api_prefix = "http://external_app.mydomain.com/api" --