From 8f9ce42fb16c32565a667adc57143b88985bff68 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Mon, 13 Apr 2026 09:51:56 +0300 Subject: [PATCH] upd sample conf --- rtmp.conf.sample | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/rtmp.conf.sample b/rtmp.conf.sample index 1fe0fee..abd016e 100644 --- a/rtmp.conf.sample +++ b/rtmp.conf.sample @@ -1,15 +1,26 @@ +log_format rtmp '$remote_addr [$time_local] ' + '$app $name $command'; + server { - listen 1935; - chunk_size 4096; + listen 1935; + chunk_size 4096; - application live { - live on; - record off; - allow publish all; - allow play all; + access_log /dev/stdout; - push rtmp://vsu.mycdn.me/input/____your__vkplay__stream___key___; - push rtmp://euc10.contribute.live-video.net/app/____your___twitch__stream___key__; - } + publish_notify on; + play_restart on; + + application live { + live on; + record off; + allow publish all; + allow play all; + + push_reconnect 1s; + meta copy; + + push rtmp://vsu.mycdn.me/input/____your__vkplay__stream___key___; + push rtmp://euc10.contribute.live-video.net/app/____your___twitch__stream___key__; + } }