Skip to content
Snippets Groups Projects
Commit 0fbdb064 authored by italo's avatar italo
Browse files

Remove unused parameters and add new ones to config

parent f1e28319
No related branches found
No related tags found
No related merge requests found
...@@ -15,12 +15,15 @@ config.server.port or= 3005 ...@@ -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) -> ...@@ -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.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment