Code Monkey home page Code Monkey logo

Comments (20)

ieatcat avatar ieatcat commented on April 28, 2024 8

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

from coturn.

ntinti avatar ntinti commented on April 28, 2024 1

Can confirm that streaming proxy works. I have to increase my "proxy_buffer_size" for video to work.

from coturn.

mom040267 avatar mom040267 commented on April 28, 2024

No, it needs real clients with real IPs.

from coturn.

partofthething avatar partofthething commented on April 28, 2024

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.

from coturn.

mom040267 avatar mom040267 commented on April 28, 2024

TURN specs do not have provisioning for that. That would be a custom
feature.

On Mon, Sep 5, 2016 at 6:54 PM, Nick Touran [email protected]
wrote:

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.


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#43 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AFq2UJlcFrXJsPPvPl5VVYiLzw6BfwEuks5qnMfdgaJpZM4IVNlU
.

from coturn.

Zjemm avatar Zjemm commented on April 28, 2024

or mayby ha-proxy?

from coturn.

CraigZych avatar CraigZych commented on April 28, 2024

@ieatcat
Do you happen to have an example config that would capture turn traffic and forward appropriately while still directing regular https:// and wss:// to the correct port?

from coturn.

cguentherTUChemnitz avatar cguentherTUChemnitz commented on April 28, 2024

@ieatcat: are you able to provide some example configuration for nginx and coturn?

from coturn.

misi avatar misi commented on April 28, 2024

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.
And this way may one thread will handle all incoming traffic!
As a workaround may use very lots of reverse proxies to somehow avoid this problem.

from coturn.

card-b avatar card-b commented on April 28, 2024

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):

http {
	(http and websocket routing in http block)
}

stream {
	server {
		listen 3478 udp;
		proxy_pass my.domain.com:3478;
	}

	server {
		listen 5349 udp;
		proxy_pass my.domain.com:5349;
	}
}

from coturn.

mjsobrep avatar mjsobrep commented on April 28, 2024

@card-b and @ntinti Can you share a bit more about the system that you got to work? I have been trying to get coturn to run behind nginx, but can't seem to make a connection.

from coturn.

GeovaneW96 avatar GeovaneW96 commented on April 28, 2024

I could make it work behind nginx reverse proxy, problem is: stun gets the gateway machine's internal IP.

from coturn.

acondura avatar acondura commented on April 28, 2024

Could you please share your example of nginx proxy settings? I'm having trouble with mine not connecting.

from coturn.

Ddvos avatar Ddvos commented on April 28, 2024

I am also interested to see some settings in Nginx and coturn

from coturn.

fabifrank avatar fabifrank commented on April 28, 2024

Does only udp require to run coturn with stream in nginx so tcp turn is able to run behind reverse proxy with classic ssl termination?

from coturn.

karolyi avatar karolyi commented on April 28, 2024

+1

from coturn.

dhaminitinAltran avatar dhaminitinAltran commented on April 28, 2024

Hi did anyone manage to do it if yes can you share the co-turn configuration and the ngnix conf file?

from coturn.

Anurag2Yadav avatar Anurag2Yadav commented on April 28, 2024

Hi @dhaminitinAltran ,
We will work together closely to resolve the issue !

from coturn.

getarun avatar getarun commented on April 28, 2024

Sorry to dig that up, but is there any progress yet? Tried something like #43 (comment) suggested, but i fail.

stream {

    map $ssl_preread_server_name $name {
        turn.domain.de turn_backend;
    }

    upstream turn_backend {
        server COTURN_IP:3478;
    }

    server {
        listen PROXY_IP:443 udp;
        proxy_pass $name;
        ssl_preread on;
       #access_log /var/log/proxy/access;
       error_log /var/log/proxy/error;
   }
}

Idea is to listen on port 443 for incoming udp traffic to send it to my coturn instance.

from coturn.

karolyi avatar karolyi commented on April 28, 2024

@getarun see #702

from coturn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.