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.
Below you will find example configuration snippets for nginx, Apache, and Caddy. All of these allow proxying requests to a specific location to your Restreamer. These examples assume that Restreamer is running on the same server or in a trusted local network accessible by your server. In this case HTTPS doesn't need to be enabled in Restreamer. Your nginx, Apache, or Caddy needs to be configured for HTTPS instead.
Example 1: nginx is serving your website and you want access Restreamer at /restreamer/
. Restreamer is running on the same server at β127.0.0.1:8080β:
Example 2: nginx is serving your website and you want access multiple Restreamer at /restreamer1/
, /restreamer2/
, and /restreamer3/
. All Restreamer are in a local network that is connected to your server:
Example 3: nginx is serving your website via HTTPS and you want access Restreamer at /restreamer/
. Restreamer is running on the same server at β127.0.0.1:8080β:
Please note that you don't need to enable HTTPS in Restreamer, because nginx is already handling the SSL connection.
Example 4: nginx is serving your website and you want access Restreamer at /restreamer/
. Restreamer is running in the local network at β192.168.1.42β. The Restreamer HTTP server is listening on port 8080 and the RTMP and SRT servers are listening on ports 1935 and 6000 resp.:
See the Nginx documentation for more details.
Example 1: Apache is serving your website and you want access Restreamer at /restreamer/
. Restreamer is running on the same server at β127.0.0.1:8080β:
Example 2: Apache is serving your website and you want access multiple Restreamer at /restreamer1/
, /restreamer2/
, and /restreamer3/
. All Restreamer are in a local network that is connected to your server:
Example 3: Apache is serving your website via HTTPS and you want access Restreamer at /restreamer/
. Restreamer is running on the same server at β127.0.0.1:8080β:
Please note that you don't need to enable HTTPS in Restreamer, because Apache is already handling the SSL connection.
See the Apache documentation for more details.
Example 1: Caddy is serving your website and you want access Restreamer at /restreamer/
. Restreamer is running on the same server at β127.0.0.1:8080β:
Example 2: Caddy is serving your website and you want access multiple Restreamer at /restreamer1/
, /restreamer2/
, and /restreamer3/
. All Restreamer are in a local network that is connected to your server:
Caddy will automatically serve your site with HTTPS enabled in case you configured your DNS correctly. Read more about Automatic HTTPS with Caddy.
Please note that you don't need to enable HTTPS in Restreamer, because Caddy is already handling the SSL connection.
See the Caddy documentation for more details.