I am trying to add NGINX infront of my TURN server, I am using the coturn package.
My NGINX conf looks like this.
stream {This works on the Chrome browser. I get srflx and relay candidates.
But on Firefox get none of these candidates.
Even on chrome there is a slight difference in the candidates I get with and without NGINX which could be the cause.
Without NGINX(chrome):
candidate:3646143538 1 udp 1677729535 <my_ip> 59271 typ srflx raddr 0.0.0.0 rport 0 generation 0 ufrag xmIu network-cost 999
candidate:1499094430 1 udp 33562623 <public_ip_of_my_turn> 63683 typ relay raddr <my_ip> rport 59271 generation 0 ufrag xmIu network-cost 999
With NGINX(chrome):
candidate:4227863252 1 udp 1677729535 127.0.0.1 54974 typ srflx raddr 0.0.0.0 rport 0 generation 0 ufrag 0nJM network-cost 999
candidate:601945334 1 udp 33562623 <public_ip_of_my_turn> 60590 typ relay raddr 127.0.0.1 rport 54974 generation 0 ufrag 0nJM network-cost 999
i get raddr as localhost. Passing the client IP properly to the backend could solve the issue.
Even in coturn logs: without NGINX: remote <my_ip>:59271
with NGINX: remote 127.0.0.1:54974
Any help here is appreciated.
Cheers, Winston