devmode: fix wrong redirect by greenlight in non-devmode

This commit is contained in:
chandi 2020-07-27 18:45:04 +02:00
parent c27ee44802
commit 02856103d7
2 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,7 @@ services:
DB_NAME: greenlight
DB_USERNAME: postgres
DB_PASSWORD: password
BIGBLUEBUTTON_ENDPOINT: http://10.7.7.1:8080/bigbluebutton/api/
BIGBLUEBUTTON_ENDPOINT: ${GREENLIGHT_ENDPOINT}
BIGBLUEBUTTON_SECRET: ${SHARED_SECRET}
SECRET_KEY_BASE: ${RAILS_SECRET}
ports:

View File

@ -11,8 +11,10 @@ then
fi
export CERTIFICATE_DOMAINS=$DOMAIN
export GREENLIGHT_ENDPOINT=https://$DOMAIN/bigbluebutton/api/
if [ "$DEV_MODE" == true ]; then
export CERTIFICATE_DOMAINS="invalid"
export GREENLIGHT_ENDPOINT=http://10.7.7.1:8080/bigbluebutton/api/
fi
# concatenate docker-compose file