forked from ungleich-public/cdist-contrib
__coturn: allow configuration of litening-ip
This commit is contained in:
parent
442dec51ed
commit
45f601c911
3 changed files with 15 additions and 1 deletions
|
@ -51,11 +51,19 @@ cat << EOF
|
|||
# Listener IP address of relay server. Multiple listeners can be specified.
|
||||
# If no IP(s) specified in the config file or in the command line options,
|
||||
# then all IPv4 and IPv6 system IPs will be used for listening.
|
||||
#
|
||||
|
||||
#listening-ip=172.17.19.101
|
||||
#listening-ip=10.207.21.238
|
||||
#listening-ip=2607:f0d0:1002:51::4
|
||||
|
||||
EOF
|
||||
|
||||
for ip in $LISTENING_IPS; do
|
||||
echo "listening-ip=$ip"
|
||||
done
|
||||
|
||||
cat << EOF
|
||||
|
||||
# Auxiliary STUN/TURN server listening endpoint.
|
||||
# Aux servers have almost full TURN and STUN functionality.
|
||||
# The (minor) limitations are:
|
||||
|
|
|
@ -69,6 +69,11 @@ if [ -f "$__object/parameter/denied-peer" ]; then
|
|||
export DENIED_PEERS
|
||||
fi
|
||||
|
||||
if [ -f "$__object/parameter/listening-ip" ]; then
|
||||
LISTENING_IPS=$(cat "$__object/parameter/listening-ip")
|
||||
export LISTENING_IPS
|
||||
fi
|
||||
|
||||
if [ -f "$__object/parameter/cert" ]; then
|
||||
CERT=$(cat "$__object/parameter/cert")
|
||||
export CERT
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
allowed-peer
|
||||
denied-peer
|
||||
listening-ip
|
||||
|
|
Loading…
Reference in a new issue