🇺🇸 English
Search…
⌃K

Proxying

If you are already running a web server and you want Restreamer to be part of the website, you can forward requests to a specific location to your Restreamer.

NGINX

This example for NGINX assumes that the Restreamer listens on “127.0.0.1:8080:”
...
server {
listen 80;
server_name ...;
​
[your site configuration]
​
location ~* /restreamer/ {
rewrite ^/restreamer/(.*) /$1 break;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://127.0.0.1:8080;
proxy_redirect off;
}
}
...
Interface URL: http://[nginx-address]/restreamer/ui/?address=http://[nginx-address]/restreamer/
If you have more than one Restreamer, you can display them all in different locations, for example:
...
server {
listen 80;
server_name ...;
​
[your site configuration]
​
location ~* /restreamer1/ {
rewrite ^/restreamer1/(.*) /$1 break;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://192.168.0.11:8080;
proxy_redirect off;
}
​
location ~* /restreamer2/ {
rewrite ^/restreamer2/(.*) /$1 break;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://192.168.0.12:8080;
proxy_redirect off;
}
​
location ~* /restreamer3/ {
rewrite ^/restreamer3/(.*) /$1 break;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://192.168.0.13:8080;
proxy_redirect off;
}
​
...
}
...
Interface URL's: - http://[nginx-address]/restreamer1/ui/?address=http://[nginx-address]/restreamer1/ - http://[nginx-address]/restreamer2/ui/?address=http://[nginx-address]/restreamer2/ - http://[nginx-address]/restreamer3/ui/?address=http://[nginx-address]/restreamer3/
To use the Restreamer with HTTPS over NGINX and protect it with a list of allowed IP addresses:
...
server {
listen 443 ssl http2;
server_name ...;
​
[SSL configuration]
​
[your site configuration]
​
location ~* /restreamer/ {
allow 192.168.0.0/32;
deny all;
rewrite ^/restreamer/(.*) /$1 break;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://192.168.0.11:8080;
proxy_redirect off;
}
}
...
Interface URL: http://[nginx-address]/restreamer/ui/?address=http://[nginx-address]/restreamer/
See the Nginx documentation for more details.

Learn more