Dear Holger,
I would like to load balance eturnal(s) with an nginx load balancer for example. turn obviously needs the real IP-address of a client asking for relaying. ejabberd has implemented proxy-protocol, at least for its xmpp listeners. So I wonder if this is planned also for eturnal.
A possible nginx config could look like this:
stream {
upstream traefik {
server traefik-lb:443;
}
upstream turnserver {
server eturnal1:5349;
server eturnal2:5349;
server eturnal3:5349;
}
map $ssl_preread_alpn_protocols $upstream {
default traefik;
"stun.turn" turnserver;
"stun.nat-discovery" turnserver;
}
server {
listen 443;
ssl_preread on;
proxy_pass $upstream;
proxy_protocol on;
}
}
Thanks in advance! Have a good evening,
Sando
Dear Holger,
I would like to load balance eturnal(s) with an nginx load balancer for example. turn obviously needs the real IP-address of a client asking for relaying. ejabberd has implemented proxy-protocol, at least for its xmpp listeners. So I wonder if this is planned also for eturnal.
A possible nginx config could look like this:
Thanks in advance! Have a good evening,
Sando