2. QuickStart Guide
2.1 Streaming Services Setup
First, log-in to your streaming service dashboards to start a new stream and obtain your stream keys.
2.1.1 Twitch
Open your Twitch dashboard and click on 'Stream Manager' to configure your stream details.
2.1.2 YouTube
Open your YouTube dashboard and click on 'Go Live' to configure your stream details.
2.2 Relay PC Setup
2.2.1 Clone the Repository
Clone the application's GitHub repository and navigate to the project directory:
2.2.2 Configure the Relay
- Edit the
env/relay.envfile:- Add your Twitch and YouTube keys.
- Configure stream quality settings as needed. For details:
Security Alert
This is a simple relay with no authentication!
The default configuration relays RTMP from all typical local and docker IPs (172.17.0.0/16,192.168.0.0/16). This restriction can be modified by setting the PUBLISH_IP_RANGE environment variable. Consider tightening the mask to only include trusted IPs on your network. Be extremely cautious if changing this setting to allow wider access.
Never expose the relay directly to the public internet.
2.2.3 Start the Relay
- Execute
./start.sh
The relay is now ready to receive video from your streaming software. To shut down the service, use CTRL-C.
2.3 Streaming PC Setup
This guide assumes you are using OBS Studio as your streaming software. Other software should have similar settings.
2.3.1 Configure OBS Studio
Configure OBS Studio to stream directly to your relay instead of upstream.
2.3.1.1 OBS / Settings / Stream Settings
Service: CustomServer:rtmp://<relay-ip>:1935/relay- Replace
<relay-ip>with your relay PC's actual IP address (e.g.,192.168.2.22)
- Replace
Stream Key: Any identifier for your stream (e.g.,myStream)- This is NOT your Twitch/YouTube key - it only identifies your stream on the relay, and in logs.
Use Authentication: Unchecked.
2.3.1.2 OBS / Settings / Output Settings
Output Mode: AdvancedEncoder: If you have a modern NVidia card, use NVIDIA NVENC H.264. Otherwise, use CPU encoding with x264.Rate Control: CBRBitrate: 20000. Set the bitrate to as large as a value as possible allowed by your network/bandwidth. See below!Keyframe Interval: 2
2.3.2 Start Streaming!
Within OBS Studio, click Start Streaming. OBS will send the stream to the relay, which will automatically forward your stream to Twitch and YouTube.
2.4 See Also
- Configuration Guide - Detailed configuration options
- Requirements - System prerequisites and hardware needs
- Troubleshooting - Common issues and solutions