nginx-rtmp can take a source and forward to multiple outputs.
Fairly more advanced is BBC's Brave which is more of an API-driven live video editor that can push to multiple outputs.
Just search for rtmps and stunnel. Quite a few helpful results. There is even a docker container that makes this pretty simple.