Advertisement
Peppernrino

nginx.conf

Oct 18th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.94 KB | None | 0 0
  1. worker_processes 8;
  2.  
  3. error_log logs/error.log debug;
  4.  
  5. events {
  6.     worker_connections 10240;
  7. }
  8.  
  9. rtmp {
  10.     server {
  11.         listen 1935;
  12.         max_streams 1024;
  13.         chunk_size 2048;
  14.  
  15.         application live {
  16.             live on;
  17.             wait_key on;
  18.             wait_video on;
  19.             sync 10ms;
  20.             push rtmp;
  21.             hls on;
  22.             hls_path temp/hls;
  23.             hls_fragment 2s;
  24.         }
  25.     }
  26. }
  27.  
  28. http {
  29.     server {
  30.         listen 8080;
  31.  
  32.         location / {
  33.             root html;
  34.         }
  35.  
  36.         location /stat {
  37.             rtmp_stat all;
  38.             rtmp_stat_stylesheet stat.xsl;
  39.         }
  40.  
  41.         location /stat.xsl {
  42.             root html;
  43.         }
  44.  
  45.         location /hls {
  46.             types{
  47.                 application/vnd.apple.mpegurl m3u8;
  48.                 video/mp2t ts;
  49.             }
  50.             alias temp/hls;
  51.             expires -1;
  52.         }
  53.     }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement