mirror of
https://github.com/bigbluebutton/docker.git
synced 2025-06-12 16:06:40 +02:00
split out IGNORE_TLS_CERT_ERRORS from DEV_MODE
this allows running the production version of bbb-docker locally with self signed certificates
This commit is contained in:
parent
1a552e7155
commit
ed77742a49
3
dev.env
3
dev.env
@ -6,6 +6,9 @@
|
|||||||
# - accept self signed certificates
|
# - accept self signed certificates
|
||||||
DEV_MODE=true
|
DEV_MODE=true
|
||||||
|
|
||||||
|
# accept self signed certificates
|
||||||
|
IGNORE_TLS_CERT_ERRORS=true
|
||||||
|
|
||||||
# user and group used for
|
# user and group used for
|
||||||
# this avoid any file permission issues with files
|
# this avoid any file permission issues with files
|
||||||
# created inside docker (e.g. node_modules)
|
# created inside docker (e.g. node_modules)
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
# don't edit this directly.
|
# don't edit this directly.
|
||||||
{{/* -------- */}}
|
{{/* -------- */}}
|
||||||
|
|
||||||
|
{{ $ignore_tls_cert_errors := or (isTrue .Env.DEV_MODE) (isTrue .Env.IGNORE_TLS_CERT_ERRORS)}}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
bbb-web:
|
bbb-web:
|
||||||
build:
|
build:
|
||||||
@ -24,7 +26,7 @@ services:
|
|||||||
test: wget --no-proxy --no-verbose --tries=1 --spider http://10.7.7.2:8090/bigbluebutton/api || exit 1
|
test: wget --no-proxy --no-verbose --tries=1 --spider http://10.7.7.2:8090/bigbluebutton/api || exit 1
|
||||||
start_period: 2m
|
start_period: 2m
|
||||||
environment:
|
environment:
|
||||||
DEV_MODE: ${DEV_MODE:-}
|
IGNORE_TLS_CERT_ERRORS: {{ $ignore_tls_cert_errors }}
|
||||||
DOMAIN: ${DOMAIN}
|
DOMAIN: ${DOMAIN}
|
||||||
ENABLE_RECORDING: ${ENABLE_RECORDING:-false}
|
ENABLE_RECORDING: ${ENABLE_RECORDING:-false}
|
||||||
SHARED_SECRET: ${SHARED_SECRET}
|
SHARED_SECRET: ${SHARED_SECRET}
|
||||||
@ -36,7 +38,6 @@ services:
|
|||||||
TURN_EXT_SERVER: ${TURN_EXT_SERVER:-}
|
TURN_EXT_SERVER: ${TURN_EXT_SERVER:-}
|
||||||
TURN_EXT_SECRET: ${TURN_EXT_SECRET:-}
|
TURN_EXT_SECRET: ${TURN_EXT_SECRET:-}
|
||||||
ENABLE_LEARNING_DASHBOARD: ${ENABLE_LEARNING_DASHBOARD:-true}
|
ENABLE_LEARNING_DASHBOARD: ${ENABLE_LEARNING_DASHBOARD:-true}
|
||||||
NUMBER_OF_BACKEND_NODEJS_PROCESSES: {{ .Env.NUMBER_OF_BACKEND_NODEJS_PROCESSES }}
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/bigbluebutton:/var/bigbluebutton
|
- ./data/bigbluebutton:/var/bigbluebutton
|
||||||
- ./data/freeswitch-meetings:/var/freeswitch/meetings
|
- ./data/freeswitch-meetings:/var/freeswitch/meetings
|
||||||
@ -413,7 +414,7 @@ services:
|
|||||||
- ./data/haproxy/letsencrypt:/etc/letsencrypt
|
- ./data/haproxy/letsencrypt:/etc/letsencrypt
|
||||||
- ./mod/haproxy/haproxy.cfg:/etc/haproxy/haproxy.cfg
|
- ./mod/haproxy/haproxy.cfg:/etc/haproxy/haproxy.cfg
|
||||||
environment:
|
environment:
|
||||||
- DEV_MODE=${DEV_MODE:-}
|
- IGNORE_TLS_CERT_ERRORS={{$ignore_tls_cert_errors}}
|
||||||
- CERT1=${DOMAIN}
|
- CERT1=${DOMAIN}
|
||||||
- STAGING=true
|
- STAGING=true
|
||||||
- EMAIL=test@chandi.it
|
- EMAIL=test@chandi.it
|
||||||
@ -449,7 +450,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgres://postgres:${POSTGRESQL_SECRET:-password}@postgres:5432/greenlight-v3
|
DATABASE_URL: postgres://postgres:${POSTGRESQL_SECRET:-password}@postgres:5432/greenlight-v3
|
||||||
REDIS_URL: redis://redis:6379
|
REDIS_URL: redis://redis:6379
|
||||||
{{ if isTrue .Env.DEV_MODE }}
|
{{ if $ignore_tls_cert_errors }}
|
||||||
BIGBLUEBUTTON_ENDPOINT: http://10.7.7.1:48083/bigbluebutton/api
|
BIGBLUEBUTTON_ENDPOINT: http://10.7.7.1:48083/bigbluebutton/api
|
||||||
{{else}}
|
{{else}}
|
||||||
BIGBLUEBUTTON_ENDPOINT: https://${DOMAIN}/bigbluebutton/api
|
BIGBLUEBUTTON_ENDPOINT: https://${DOMAIN}/bigbluebutton/api
|
||||||
|
@ -13,7 +13,7 @@ securitySalt={{ .Env.SHARED_SECRET }}
|
|||||||
|
|
||||||
redisHost=redis
|
redisHost=redis
|
||||||
|
|
||||||
{{ if isTrue .Env.DEV_MODE }}
|
{{ if isTrue .Env.IGNORE_TLS_CERT_ERRORS }}
|
||||||
beans.presentationService.defaultUploadedPresentation=https://test27.bigbluebutton.org/default.pdf
|
beans.presentationService.defaultUploadedPresentation=https://test27.bigbluebutton.org/default.pdf
|
||||||
# fetch presentations without HTTPS
|
# fetch presentations without HTTPS
|
||||||
presentationBaseURL=http://{{ .Env.DOMAIN }}/bigbluebutton/presentation
|
presentationBaseURL=http://{{ .Env.DOMAIN }}/bigbluebutton/presentation
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<constructor-arg index="2" value="86400"/>
|
<constructor-arg index="2" value="86400"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
{{if and (isTrue .Env.ENABLE_HTTPS_PROXY) (not (isTrue .Env.DEV_MODE)) }}
|
{{if and (isTrue .Env.ENABLE_HTTPS_PROXY) (not (isTrue .Env.IGNORE_TLS_CERT_ERRORS)) }}
|
||||||
{{/* ignore when using a self signed certificate in dev mode */}}
|
{{/* ignore when using a self signed certificate in dev mode */}}
|
||||||
<bean id="turn1" class="org.bigbluebutton.web.services.turn.TurnServer">
|
<bean id="turn1" class="org.bigbluebutton.web.services.turn.TurnServer">
|
||||||
<constructor-arg index="0" value="{{ .Env.TURN_SECRET }}"/>
|
<constructor-arg index="0" value="{{ .Env.TURN_SECRET }}"/>
|
||||||
@ -42,7 +42,7 @@
|
|||||||
<set>
|
<set>
|
||||||
<ref bean="turn0" />
|
<ref bean="turn0" />
|
||||||
|
|
||||||
{{if and (isTrue .Env.ENABLE_HTTPS_PROXY) (not (isTrue .Env.DEV_MODE)) }}
|
{{if and (isTrue .Env.ENABLE_HTTPS_PROXY) (not (isTrue .Env.IGNORE_TLS_CERT_ERRORS)) }}
|
||||||
<ref bean="turn1" />
|
<ref bean="turn1" />
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ set -e
|
|||||||
|
|
||||||
declare -p | grep -Ev '^declare -[[:alpha:]]*r' > /container.env
|
declare -p | grep -Ev '^declare -[[:alpha:]]*r' > /container.env
|
||||||
|
|
||||||
if [ "$DEV_MODE" ]; then
|
if [ "$IGNORE_TLS_CERT_ERRORS" ]; then
|
||||||
# use self signed certificate
|
# use self signed certificate
|
||||||
if [ ! -f /etc/haproxy/certs/haproxy-10.7.7.1.pem ]; then
|
if [ ! -f /etc/haproxy/certs/haproxy-10.7.7.1.pem ]; then
|
||||||
mkdir -p /etc/haproxy/certs
|
mkdir -p /etc/haproxy/certs
|
||||||
|
@ -45,6 +45,7 @@ docker run \
|
|||||||
-e COMMIT_ETHERPAD_PLUGIN=$(get_tag repos/bbb-etherpad-plugin) \
|
-e COMMIT_ETHERPAD_PLUGIN=$(get_tag repos/bbb-etherpad-plugin) \
|
||||||
-e BBB_BUILD_TAG=${BBB_BUILD_TAG} \
|
-e BBB_BUILD_TAG=${BBB_BUILD_TAG} \
|
||||||
-e DEV_MODE=${DEV_MODE:-false} \
|
-e DEV_MODE=${DEV_MODE:-false} \
|
||||||
|
-e IGNORE_TLS_CERT_ERRORS=${IGNORE_TLS_CERT_ERRORS:-} \
|
||||||
-e EXTERNAL_IPv6=${EXTERNAL_IPv6:-} \
|
-e EXTERNAL_IPv6=${EXTERNAL_IPv6:-} \
|
||||||
-e ENABLE_RECORDING=${ENABLE_RECORDING:-false} \
|
-e ENABLE_RECORDING=${ENABLE_RECORDING:-false} \
|
||||||
-e ENABLE_HTTPS_PROXY=${ENABLE_HTTPS_PROXY:-false} \
|
-e ENABLE_HTTPS_PROXY=${ENABLE_HTTPS_PROXY:-false} \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user