title: How to make NGINX RTMP module store streamed HLS?
body: <p>I am using NGINX with RTMP module to stream video in HLS format. I want to make it store the live video being streamed in HLS format. I am aware of the <code>hls_cleanup</code> directive for RTMP module, however turning off the cleanup does not prevent the <code>.m3u8</code> from being overwritten over and over. How do I make NGINX append new chunks to the <code>.m3u8</code> file rather than overwrite it? If it isn't the right way to solve this problem what other options do I have?</p>