openvidu-deployment: Disable coturn logs by default

pull/570/head
cruizba 2020-11-25 19:43:33 +01:00
parent 6dba08afe4
commit 3696c49a9b
5 changed files with 17 additions and 28 deletions

View File

@ -65,7 +65,7 @@ services:
max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}" max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}"
redis: redis:
image: openvidu/openvidu-redis:1.0.0 image: openvidu/openvidu-redis:2.0.0-dev1
restart: always restart: always
network_mode: host network_mode: host
environment: environment:
@ -75,7 +75,7 @@ services:
max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}" max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}"
coturn: coturn:
image: openvidu/openvidu-coturn:2.0.0 image: openvidu/openvidu-coturn:3.0.0-dev1
restart: on-failure restart: on-failure
network_mode: host network_mode: host
environment: environment:
@ -85,6 +85,7 @@ services:
- DB_PASSWORD=${OPENVIDU_SECRET} - DB_PASSWORD=${OPENVIDU_SECRET}
- MIN_PORT=57001 - MIN_PORT=57001
- MAX_PORT=65535 - MAX_PORT=65535
- ENABLE_COTURN_LOGS=false
logging: logging:
options: options:
max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}" max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}"

View File

@ -1,25 +1,3 @@
filebeat.autodiscover:
providers:
- type: docker
hints.enabled: true
templates:
- condition:
contains:
docker.container.name: "nginx"
config:
- module: nginx
access:
input:
type: docker
containers:
ids: "${data.docker.container.id}"
stream: "stdout"
error:
input:
type: docker
containers:
ids: "${data.docker.container.id}"
stream: "stderr"
filebeat.inputs: filebeat.inputs:
- type: container - type: container
paths: paths:

View File

@ -52,7 +52,7 @@ services:
max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}" max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}"
redis: redis:
image: openvidu/openvidu-redis:1.0.0 image: openvidu/openvidu-redis:2.0.0-dev1
restart: always restart: always
network_mode: host network_mode: host
environment: environment:
@ -62,7 +62,7 @@ services:
max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}" max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}"
coturn: coturn:
image: openvidu/openvidu-coturn:2.0.0 image: openvidu/openvidu-coturn:3.0.0-dev1
restart: on-failure restart: on-failure
network_mode: host network_mode: host
environment: environment:
@ -73,6 +73,7 @@ services:
- MIN_PORT=40000 - MIN_PORT=40000
- MAX_PORT=65535 - MAX_PORT=65535
- TURN_PUBLIC_IP=${TURN_PUBLIC_IP:-auto-ipv4} - TURN_PUBLIC_IP=${TURN_PUBLIC_IP:-auto-ipv4}
- ENABLE_COTURN_LOGS=false
logging: logging:
options: options:
max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}" max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}"

View File

@ -7,6 +7,7 @@ DEBUG=${DEBUG:-false}
#Check parameters #Check parameters
[[ "${TURN_PUBLIC_IP}" == "auto-ipv4" ]] && export TURN_PUBLIC_IP=$(/usr/local/bin/discover_my_public_ip.sh) [[ "${TURN_PUBLIC_IP}" == "auto-ipv4" ]] && export TURN_PUBLIC_IP=$(/usr/local/bin/discover_my_public_ip.sh)
[[ "${TURN_PUBLIC_IP}" == "auto-ipv6" ]] && export TURN_PUBLIC_IP=$(/usr/local/bin/discover_my_public_ip.sh --ipv6) [[ "${TURN_PUBLIC_IP}" == "auto-ipv6" ]] && export TURN_PUBLIC_IP=$(/usr/local/bin/discover_my_public_ip.sh --ipv6)
[[ -z "${ENABLE_COTURN_LOGS}" ]] && export ENABLE_COTURN_LOGS=false
echo "TURN public IP: ${TURN_PUBLIC_IP:-"empty"}" echo "TURN public IP: ${TURN_PUBLIC_IP:-"empty"}"
@ -23,4 +24,8 @@ source /tmp/configuration-files.sh
# Remove temp file with configuration parameters # Remove temp file with configuration parameters
rm /tmp/configuration-files.sh rm /tmp/configuration-files.sh
/usr/bin/turnserver -c /etc/turnserver.conf -v --log-file /dev/null if [[ "${ENABLE_COTURN_LOGS}" == "true" ]]; then
/usr/bin/turnserver -c /etc/turnserver.conf -v --log-file /dev/null
else
/usr/bin/turnserver -c /etc/turnserver.conf -v --log-file /dev/null --no-stdout-log
fi

View File

@ -4163,7 +4163,11 @@ public class OpenViduTestAppE2eTest extends AbstractOpenViduTestAppE2eTest {
sessionName2.clear(); sessionName2.clear();
sessionName2.sendKeys(sessionName); sessionName2.sendKeys(sessionName);
user.getDriver().findElements(By.className("join-btn")).forEach(el -> el.sendKeys(Keys.ENTER)); List<WebElement> joinButtons = user.getDriver().findElements(By.className("join-btn"));
for(WebElement el : joinButtons) {
Thread.sleep(5000);
el.sendKeys(Keys.ENTER);
}
user.getEventManager().waitUntilEventReaches("connectionCreated", 4); user.getEventManager().waitUntilEventReaches("connectionCreated", 4);
user.getEventManager().waitUntilEventReaches("accessAllowed", 2); user.getEventManager().waitUntilEventReaches("accessAllowed", 2);