diff --git a/docker-compose.tmpl.yml b/docker-compose.tmpl.yml index 7f8acd19..959c4e4c 100644 --- a/docker-compose.tmpl.yml +++ b/docker-compose.tmpl.yml @@ -493,6 +493,8 @@ services: - "--allowed-peer-ip=${EXTERNAL_IPv4}" - "--relay-ip=${EXTERNAL_IPv4}" - "--relay-ip=${EXTERNAL_IPv6:-::1}" + - "--listening-ip=${TURN_LISTENING_IPv4:-${EXTERNAL_IPv4}}" + - "--listening-ip=${TURN_LISTENING_IPv6:-${EXTERNAL_IPv6:-::1}}" volumes: - ./mod/coturn/turnserver.conf:/etc/coturn/turnserver.conf network_mode: host diff --git a/sample.env b/sample.env index 99b654ec..fb55a6c6 100644 --- a/sample.env +++ b/sample.env @@ -63,6 +63,11 @@ STUN_PORT=3478 # uncomment and adjust following two lines to add an external TURN server #TURN_EXT_SERVER=turns:example.org:443?transport=tcp #TURN_EXT_SECRET= +# uncomment and adjust following two lines to specify the addreess the TURN +# server should listen on, if it is different to the EXTERNAL_IPvx values, for +# example when the server is behind a NAT. +#TURN_LISTENING_IPv4= +#TURN_LISTENING_IPv6= # Allowed SIP IPs # due to high traffic caused by bots, by default the SIP port is blocked.