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.
-
Does Matrix respect SRV DNS records?
Cloudflare can be set up for those and pass the hints to the TURN ports you already have.
-
@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.