New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is it possible to run coturn behind nginx proxy? #43
Comments
No, it needs real clients with real IPs. |
Dang, 'cause yeah that's probably a relatively useful case for family servers these days. Everyone's home-page has SSL thanks to letsencrypt so web traffic goes through there. It'd be really slick to be able to redirect a subdomain's 443 traffic to localhost's 5349 or something. I'm up and running for all users except people behind corporate firewalls that block non-standard ports for this reason. At least I think that's what's going on. |
TURN specs do not have provisioning for that. That would be a custom On Mon, Sep 5, 2016 at 6:54 PM, Nick Touran notifications@github.com
|
This is incorrect. Coturn can definitely run behind NGINX using stream. Learn more about it here: https://www.nginx.com/resources/admin-guide/tcp-load-balancing/#proxy_pass |
or mayby ha-proxy? |
@ieatcat |
@ieatcat: are you able to provide some example configuration for nginx and coturn? |
Be aware that AFAIU if you use reverse proxy then because of coTURN's internal architecture may it doesn't load balance the load between the threads, so between cpu core-s. |
Did not try this with load balancing, but using the link posted by ieatcat I was able to proxy pass to turnserver in nginx and still route to my websockets. Not sure if this is the best way to do this, but it does work (inside nginx.conf):
|
Can confirm that streaming proxy works. I have to increase my "proxy_buffer_size" for video to work. |
I could make it work behind nginx reverse proxy, problem is: stun gets the gateway machine's internal IP. |
Could you please share your example of nginx proxy settings? I'm having trouble with mine not connecting. |
I am also interested to see some settings in Nginx and coturn |
Does only |
+1 |
Hi did anyone manage to do it if yes can you share the co-turn configuration and the ngnix conf file? |
Hi @dhaminitinAltran , |
Sorry to dig that up, but is there any progress yet? Tried something like #43 (comment) suggested, but i fail.
Idea is to listen on port 443 for incoming udp traffic to send it to my coturn instance. |
It's not tested at all and has problems. The recommendation is to use a TURN server for TCP.
Hi,
is it possible to run coturn behind a nginx reverse proxy?
i have only 2 ip's on that maschine and need coturn to listen on port 443
so i want to configure nginx to forward name based to coturn, but no luck until now.
if that is known to working, can someone provide me a config?
regards
The text was updated successfully, but these errors were encountered: