Remove unused parameters and add new ones to config
This commit is contained in:
parent
f1e2831924
commit
0fbdb06479
@ -15,12 +15,15 @@ config.server.port or= 3005
|
|||||||
# Web hooks configs
|
# Web hooks configs
|
||||||
config.hooks or= {}
|
config.hooks or= {}
|
||||||
config.hooks.pchannel or= "bigbluebutton:*"
|
config.hooks.pchannel or= "bigbluebutton:*"
|
||||||
config.hooks.meetingsChannel or= "bigbluebutton:from-bbb-apps:meeting"
|
|
||||||
# IP where aggr will be hosted
|
# IP where aggr will be hosted
|
||||||
config.hooks.aggr or= []
|
config.hooks.aggr or= []
|
||||||
config.hooks.queueSize or= 10000
|
config.hooks.queueSize or= 10000
|
||||||
config.hooks.getRaw or= false
|
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.
|
# Retry intervals for failed attempts for perform callback calls.
|
||||||
# In ms. Totals to around 5min.
|
# In ms. Totals to around 5min.
|
||||||
config.hooks.retryIntervals = [
|
config.hooks.retryIntervals = [
|
||||||
@ -52,11 +55,12 @@ config.api.responses.failure = (key, msg) ->
|
|||||||
config.api.responses.checksumError =
|
config.api.responses.checksumError =
|
||||||
config.api.responses.failure("checksumError", "You did not pass the checksum security check.")
|
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) ->
|
||||||
"<response> \
|
"<response> \
|
||||||
<returncode>SUCCESS</returncode> \
|
<returncode>SUCCESS</returncode> \
|
||||||
<hookID>#{id}</hookID> \
|
<hookID>#{id}</hookID> \
|
||||||
<permanentHook>#{permanent}</permanentHook> \
|
<permanentHook>#{permanent}</permanentHook> \
|
||||||
|
<rawData>#{getRaw}</rawData> \
|
||||||
</response>"
|
</response>"
|
||||||
config.api.responses.createFailure =
|
config.api.responses.createFailure =
|
||||||
config.api.responses.failure("createHookError", "An error happened while creating your hook. Check the logs.")
|
config.api.responses.failure("createHookError", "An error happened while creating your hook. Check the logs.")
|
||||||
|
Loading…
Reference in New Issue
Block a user