docker/mod/webhooks/entrypoint.sh

18 lines
444 B
Bash
Raw Normal View History

2020-06-30 19:44:20 +02:00
#!/bin/sh
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
cd /bbb-webhooks
node app.js
2020-06-30 19:44:20 +02:00