Forum: NGINX WebRTC and NGINX Reverse Proxy

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ben (Guest)
on 2016-07-02 18:22
(Received via mailing list)

I have a PBX that has a webRTC feature (i.e. you login to PBX website
and you have a virtual handset with all the features).

Is it feasible or possible to use NGINX as a reverse proxy to handle
webRTC ?

A basic NGINX config just using proxy_pass doesn't seem to work, so I'm
guessing there's probably more to it than that ?

THanks !
Mihai Vintila (Guest)
on 2016-07-04 10:28
(Received via mailing list)
It works with something like this:

location ^~ /webrtc/ {
     if ($my_https = "off") {
         return 301 https://$host$request_uri;
     limit_conn conn 100;
     limit_req zone=basic burst=3000 nodelay;
     proxy_pass http://backend;
     proxy_set_header X-Real-IP $remote_addr;
     proxy_read_timeout 600s;
     proxy_send_timeout 600s;
     proxy_connect_timeout 20s;
     proxy_http_version 1.1;
     proxy_set_header Upgrade $http_upgrade;
     proxy_set_header Connection upgrade;
     proxy_set_header Host $host;

Best regards,
Vintila Mihai Alexandru
Ben (Guest)
on 2016-07-04 13:29
(Received via mailing list)
Sounds fabulous. Thank Vintila !
This topic is locked and can not be replied to.