JasonRivers / Docker-nginx-rtmp

Docker Image for RTMP streams using Nginx
181 stars 114 forks source link

How to record #6

Closed lupus721 closed 6 years ago

lupus721 commented 6 years ago

How to record ,i can't set nginx.conf

JasonRivers commented 6 years ago

I'll be looking at this as part of the changes for #7 too - This way you'll be able to mount your own nginx.conf and the container won't try and write changes to it.

JasonRivers commented 6 years ago

From 8ae8cf3 you can mount your own nginx.conf file using: -v /path/to/nginx.conf:/opt/nginx/conf/nginx.conf

If there is enough demand for recording as an option I'll add it to the default config depending on an environment variable.