Show public ip entrypoint coturn

pull/431/head
OscarSotoSanchez 2020-03-27 14:52:36 +01:00
parent 4db62f9727
commit 86ffec9bfe
1 changed files with 3 additions and 3 deletions

View File

@ -5,13 +5,13 @@ DEBUG=${DEBUG:-false}
[ "$DEBUG" == "true" ] && set -x
#Check parameters
[[ ! -z "${TURN_PUBLIC_IP}" ]] && echo "TURN public IP: ${TURN_PUBLIC_IP}" ||
export TURN_PUBLIC_IP=$(curl ifconfig.co)
[[ ! -z "${TURN_PUBLIC_IP}" ]] || export TURN_PUBLIC_IP=$(curl ifconfig.co)
echo "TURN public IP: ${TURN_PUBLIC_IP}"
[[ ! -z "${TURN_LISTEN_PORT}" ]] && echo "TURN listening port: ${TURN_LISTEN_PORT}" ||
{ echo "TURN_LISTEN_PORT environment variable is not defined"; exit 1; }
[[ ! -z "${REDIS_IP}" ]] && echo "REDIS IP: ${REDIS_IP}" || { echo "REDIS_IP environment variable is not defined"; exit 1; }
[[ ! -z "${DB_NAME}" ]] || { echo "DB_NAME environment variable is not defined"; exit 1; }