datarhei / restreamer

The Restreamer is a complete streaming server solution for self-hosting. It has a visually appealing user interface and no ongoing license costs. Upload your live stream to YouTube, Twitch, Facebook, Vimeo, or other streaming solutions like Wowza. Receive video data from OBS and publish it with the RTMP and SRT server.
https://docs.datarhei.com/restreamer/
Apache License 2.0
3.78k stars 438 forks source link

How to properly install a second instance of Restreamer? #464

Open svenerbeck opened 1 year ago

svenerbeck commented 1 year ago

Discussed in https://github.com/datarhei/restreamer/discussions/450

Originally posted by **MauricioOnetto** November 8, 2022 Hi I'm using Restreamer (behind NGINX) for a while and it works smooth Thanks for that Now I'm trying to install a second instance of Restreamer (same server) but I'm missing something I could install it and validate with a new user (and new subdomain), but when I try to connect with OBS using the wizard, It doesnt detect any transmision (and I'm sending from OBS to the wizard's rtmp url) This is my code to install docker run -d --restart=always --name restreamer11 -v /opt11/restreamer/config:/core/config -v /opt11/restreamer/data:/core/data -p 8011:8080 -p 8111:8181 -p 2011:1935 -p 2111:1936 -p 6011:6000/udp datarhei/restreamer:latest I'm using UFW (any new port is allowed) 8011/tcp 8111/tcp 2011/tcp 2111/tcp 6011/udp What am I missing? Thank you
MauricioOnetto commented 1 year ago

I add my nginx conf

`server { listen 80; listen [::]:80;

    index index.php index.html index.htm index.nginx-debian.html;

    server_name my.domain.com;

    location / {
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_pass http://localhost:8080;
    }

}`

This code: docker, ufw and nginx, is working right now, but I don't know if it is the properly way

Thanks @svenerbeck for moving it

jstabenow commented 1 year ago

@MauricioOnetto Did you try this? https://docs.datarhei.com/restreamer/knowledge-base/user-guides/proxying