Use external turn server
-
Is there any way to change the turn server in matrix in order to use an external one? I need to do this because I proxy my services behind Cloudflare, which renders the Cloudron turn server inoperable.
The challenge here is that changing the turn server in homeserver.yaml doesn't take effect without a restart (at least I think), which then results in the homeserver.yaml file being overwritten with the Cloudron turn server.
Any thoughts on how I might do this would be much appreciated. Currently we can only make calls successfully within our network and need to use our external turn server in order to then start rolling out matrix/element to our wider network.
-
@robi Thanks very much for the reply! It does seem like matrix does respect SRV DNS records (see e.g. here and here).
I think I'd still prefer to add our external turn server as it works on port 443. But this is definitely something I'm keen to explore. I'll have a play around to see if that can work around things.
-
@robi That doesn't do the trick unfortunately. It results in the underlying IP of the cloudron server being exposed, which undermines the purpose of the cloudflare proxying.
So i think I still need to find a way to add in our external turn server and allow it to survive a reboot.
-
@girish Running into the same problem here. The built in TURN server is notoriously unstable (at least on my setup) which is why I would like to try using the same external one I set up for my nextcloud instance. However the config get overwritten every time its restarted. I added my custom config above the built in one hoping it will use these instead but have to do some testing what happens.
I would love having the same option here for 7.4
-
@andreasdueren @girish confirmed a couple days ago that this was coming in 7.4. It was originally scheduled for 7.3, but didn't make it. I hope it does as it's pretty critical for anyone wanting to use a turnserver in academic or corporate contexts.