From 0fbdb064796bd0f629f153ba172ebb80c8dd2ea3 Mon Sep 17 00:00:00 2001 From: italo Date: Tue, 22 Aug 2017 16:58:03 +0000 Subject: [PATCH] Remove unused parameters and add new ones to config --- bbb-webhooks/config.coffee | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bbb-webhooks/config.coffee b/bbb-webhooks/config.coffee index 569966e529..64ea106804 100644 --- a/bbb-webhooks/config.coffee +++ b/bbb-webhooks/config.coffee @@ -15,12 +15,15 @@ config.server.port or= 3005 # Web hooks configs config.hooks or= {} config.hooks.pchannel or= "bigbluebutton:*" -config.hooks.meetingsChannel or= "bigbluebutton:from-bbb-apps:meeting" # IP where aggr will be hosted config.hooks.aggr or= [] config.hooks.queueSize or= 10000 config.hooks.getRaw or= false +config.webhooks or= {} +config.webhooks.rawPath or= "payload" +config.webhooks.meetingId or= "meeting_id" + # Retry intervals for failed attempts for perform callback calls. # In ms. Totals to around 5min. config.hooks.retryIntervals = [ @@ -52,11 +55,12 @@ config.api.responses.failure = (key, msg) -> config.api.responses.checksumError = config.api.responses.failure("checksumError", "You did not pass the checksum security check.") -config.api.responses.createSuccess = (id, permanent) -> +config.api.responses.createSuccess = (id, permanent, getRaw) -> " \ SUCCESS \ #{id} \ #{permanent} \ + #{getRaw} \ " config.api.responses.createFailure = config.api.responses.failure("createHookError", "An error happened while creating your hook. Check the logs.")