Open
Description
Hello everyone, proxy_protocol is not working with Amazon ELB (Network load balancer) for some reason. "Proxy Protocol V2" is enabled for the Target Group on Amazon.
I'm using Alpine Linux, everything latest version.
I tried with this configuration:
rtmp {
server {
listen 1935 proxy_protocol;
chunk_size 4096;
application streaming {
#...
}
}
}
But then, when I start to stream via RTMP using FFmpeg, I get this error.
Cannot read RTMP handshake response.
Same thing with OBS, I also get an error.
I've found a workaround with nginx-mod-stream. Here it is:
stream {
server {
listen 1935 proxy_protocol;
proxy_pass 127.0.0.1:1936;
proxy_protocol on;
set_real_ip_from 0.0.0.0/0;
}
}
rtmp {
server {
listen 127.0.0.1:1936 proxy_protocol;
chunk_size 4096;
application streaming {
#...
}
}
}
I can start streaming this way, and I get the correct Client IP address.
What could possibly be the cause?
Metadata
Metadata
Assignees
Labels
No labels