I am trying to deploy coturn on a server which is behind a restricted network, with only ports 80 and 443 (TCP) allowed.
As I have several services working in the same server, they are all behind a nginx reverse proxy. I want coturn to work the same way. This is my nginx configuration:
server{
listen 443 ssl;
listen [::]:443 ssl;
server_name turn.mydomain.com;
include /etc/nginx/conf/ssl.conf;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://coturn:3478;
}
}
and coturn configuration:
listening-port=3478
tls-listening-port=5349
fingerprint
lt-cred-mech
server-name=turn.mydomain.com
realm=turn.mydomain.com
total-quota=100
stale-nonce=600
proc-user=turnserver
proc-group=turnserver
coturn is up and working, with its internal IP resolved as "coturn" for proxy_pass to work. However, when testing connection with WebRTC Trickle ICE I am getting this result:
It seems to find the server, but does not gather any candidate. Any idea of what could I be doing wrong?