Adding NGINX infront of TURN #1160
Replies: 1 comment
-
Hi @WinstonPais I'm not that familiar with NGINX usage but I may still have an idea (regarding 127.0.0.1 which is definitely incorrect). It seems like the issue is not related to NGINX but the network: turnserver selects relay interface based on the IP of the client connection. In your setup, NGINX forwards the connection using 127.0.0.1 - and turnserver decides to use localhost because that's where the connection was receive from. See related comment in the configuration example https://github.com/coturn/coturn/blob/master/examples/etc/turnserver.conf#L99
I think that if you run turnserver with |
Beta Was this translation helpful? Give feedback.
-
I am trying to add NGINX infront of my TURN server
My NGINX conf looks like this.
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:
With NGINX:
As we can see i get raddr as localhost. Passing the remote 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
Beta Was this translation helpful? Give feedback.
All reactions