Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- worker_processes 1;
- # removed pid from systemctl service file
- #pid /run/nginx.pid;
- events {
- worker_connections 1024;
- }
- rtmp {
- server {
- listen 1935;
- chunk_size 4000;
- # video on demand for flv files
- application vod {
- play /var/streaming/flv;
- }
- # video on demand for mp4 files
- application vod2 {
- play /var/streaming/mp4;
- }
- # test rtmp stream from ffmpeg
- application live {
- live on;
- drop_idle_publisher 10s;
- }
- }
- }
- # HTTP can be used for accessing RTMP stats
- http {
- # access_log /var/log/nginx/access-streaming.log;
- # error_log /var/log/nginx/error-streaming.log;
- server {
- # in case we have another web server on port 80
- listen 80;
- root /usr/local/nginx/html/;
- include mime.types;
- # test
- location / {
- autoindex on;
- }
- # This URL provides RTMP statistics in XML
- #location /stat {
- # rtmp_stat all;
- # rtmp_stat_stylesheet stat.xsl;
- #}
- #location /stat.xsl {
- # # XML stylesheet to view RTMP stats.
- # # Copy stat.xsl wherever you want
- # # and put the full directory path here
- # root /var/www/;
- #}
- #location /hls {
- # # Serve HLS fragments
- # types {
- # application/vnd.apple.mpegurl m3u8;
- # video/mp2t ts;
- # }
- # alias /tmp/app;
- # expires -1;
- #}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement