Is there a chance we could get coturn preinstalled with some toggles for the settings in the UI? I want to be able to access the device using a port forwarding type setup where I forward only a few ports over a tunnel.
In my local setup, I compiled coturn and am using it with the following configuration. This provides me the ability to use webrtc over just 1 port and have the actual traffic forwarded on the KVM internally. I would love to see coturn integrated and the TURN ports exposed as setting toggles in the UI. I could imagine the user being able to specify a separate IP address that is advertised in the turn uris to the client as well as being able to modify the turn port.
This greatly improves accessibility of the webrtc interface and enables much simpler forwarding. It would also be nice to expose the turnserver.json toggles to the UI as well so the user could customize it to add an external TURN server if desired.
listening-port=${WEBRTC_PORT}
tls-listening-port=${WEBRTC_PORT}
min-port=49200
max-port=49800
lt-cred-mech
user=${WEBRTC_USERNAME}:${WEBRTC_PASSWORD}
no-tls
no-dtls
no-software-attribute
realm=glkvm
verbose
log-file=/tmp/turnserver.log
simple-log
{
"username": "$WEBRTC_USERNAME",
"ttl": 864000,
"password": "$WEBRTC_PASSWORD",
"uris": ["turn:DEVICE_IP:3479?transport=udp", "turn:DEVICE_IP:3479?transport=tcp", "turn:VPN_IP:3479?transport=udp", "turn:VPN_IP:3479?transport=tcp"]
}