Use chatgpt to help you. That's what I did. It took whole day tho. chatgot doesn't understand Nostr that well.
It's very simple. Install nginx with RTMP module. The you have to edit the nginx conf file and turn on add application live , live on with hls path
You don't need to put your stream key in there because zap stream picks it up. The you have to make a script to make your stream event sent to nostr. That's the hard part. but chatgpt can help you with all that