Skip to content
Snippets Groups Projects
Commit 22bf1e90 authored by Felipe Cecagno's avatar Felipe Cecagno
Browse files

modify config.bbb.auth2_0 modifying an environment variable

parent 8e9a75d1
No related branches found
No related tags found
No related merge requests found
......@@ -63,8 +63,9 @@ module.exports = class CallbackEmitter extends EventEmitter {
_emitMessage(callback) {
let data,requestOptions;
const sharedSecret = process.env.SHARED_SECRET || config.bbb.sharedSecret;
const bearer_auth = process.env.BEARER_AUTH || config.bbb.auth2_0;
if (config.bbb.auth2_0) {
if (bearer_auth) {
// Send data as a JSON
data = "[" + this.message + "]";
......
......@@ -32,6 +32,7 @@ services:
environment:
REDIS_HOST: redis
SHARED_SECRET: ${SHARED_SECRET}
BEARER_AUTH: 1
labels:
- "traefik.backend=bbb-webhooks"
- "traefik.frontend.rule=PathPrefix: /bigbluebutton/api/hooks"
......
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