one variable DEV_MODE instead of multiple (would become quite a lot)

This commit is contained in:
chandi 2024-01-07 23:36:12 +01:00
parent 4290c1616d
commit 426349d0d7
3 changed files with 7 additions and 12 deletions

View File

@ -1,10 +1,10 @@
# fixed environment for an working dev setup
# enables
# - meteor dev server
# - accept self signed certificates
DEV_MODE=true
# use meteor dev server for html5
DEV_HTML5=true

View File

@ -81,7 +81,7 @@ services:
ipv4_address: 10.7.7.2
{{ if isTrue .Env.DEV_HTML5 }}
{{ if isTrue .Env.DEV_MODE }}
html5-dev:
build:
context: mod/html5
@ -190,17 +190,17 @@ services:
depends_on:
- etherpad
- webrtc-sfu
{{ if isTrue .Env.DEV_HTML5 }}
{{ if isTrue .Env.DEV_MODE }}
- html5-dev
{{ else }}
- html5-backend-1
{{ end }}
volumes:
- bigbluebutton:/var/bigbluebutton
- ./data/bigbluebutton:/var/bigbluebutton
- html5-static:/html5-static:ro
- ${DEFAULT_PRESENTATION:-/dev/null}:/www/default.pdf
{{ if isTrue .Env.DEV_HTML5 }}
{{ if isTrue .Env.DEV_MODE }}
# don't let nginx directly serve static files
- ./mod/nginx/bbb-html5.dev.nginx:/etc/nginx/bbb/bbb-html5.nginx:ro
{{ end }}

View File

@ -14,11 +14,6 @@ export ENVIRONMENT_TYPE=production
export NODE_VERSION=node-v14.21.1-linux-x64
export BBB_HTML5_LOCAL_SETTINGS=/app/bbb-html5.yml
if [ "$DEV_MODE" == true ]; then
echo "DEV_MODE=true, disable TLS certificate rejecting"
export NODE_TLS_REJECT_UNAUTHORIZED=0
fi
if [ "$BBB_HTML5_ROLE" == "backend" ]; then
PARAM=NODEJS_BACKEND_INSTANCE_ID=$INSTANCE_ID
fi