2020-06-30 19:44:20 +02:00
|
|
|
#!/bin/sh
|
2022-04-03 23:24:20 +02:00
|
|
|
set -e
|
|
|
|
TARGET=/bbb-webhooks/config/production.yml
|
|
|
|
cp /bbb-webhooks/config/default.example.yml $TARGET
|
|
|
|
|
|
|
|
yq e -i ".bbb.sharedSecret = \"$SHARED_SECRET\"" $TARGET
|
|
|
|
yq e -i ".bbb.serverDomain = \"$DOMAIN\"" $TARGET
|
|
|
|
yq e -i ".bbb.auth2_0 = true" $TARGET
|
|
|
|
yq e -i ".server.bind = \"0.0.0.0\"" $TARGET
|
|
|
|
yq e -i ".hooks.getRaw = false" $TARGET
|
|
|
|
yq e -i ".redis.host = \"redis\"" $TARGET
|
2020-06-30 19:44:20 +02:00
|
|
|
|
|
|
|
export NODE_ENV=production
|
2022-04-03 23:24:20 +02:00
|
|
|
|
|
|
|
cd /bbb-webhooks
|
|
|
|
node app.js
|
2020-06-30 19:44:20 +02:00
|
|
|
|