Advertisement
Guest User

Untitled

a guest
Apr 18th, 2017
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. #user nobody;
  2. worker_processes 1;
  3.  
  4. error_log logs/error.log debug;
  5.  
  6. events {
  7. worker_connections 1024;
  8. }
  9.  
  10. http {
  11. include mime.types;
  12. default_type application/octet-stream;
  13.  
  14. sendfile on;
  15. keepalive_timeout 65;
  16.  
  17. server {
  18. listen 8080;
  19. server_name localhost;
  20.  
  21. # sample handlers
  22. #location /on_play {
  23. # if ($arg_pageUrl ~* localhost) {
  24. # return 201;
  25. # }
  26. # return 202;
  27. #}
  28. #location /on_publish {
  29. # return 201;
  30. #}
  31.  
  32. #location /vod {
  33. # alias /var/myvideos;
  34. #}
  35.  
  36. # rtmp stat
  37. location /stat {
  38. rtmp_stat all;
  39. rtmp_stat_stylesheet stat.xsl;
  40. }
  41. location /stat.xsl {
  42. # you can move stat.xsl to a different location
  43. root /usr/build/nginx-rtmp-module;
  44. }
  45.  
  46. # rtmp control
  47. location /control {
  48. rtmp_control all;
  49. }
  50.  
  51. error_page 500 502 503 504 /50x.html;
  52. location = /50x.html {
  53. root html;
  54. }
  55. }
  56. }
  57.  
  58. rtmp {
  59. server {
  60. listen 1935;
  61. ping 30s;
  62. notify_method get;
  63.  
  64. application live {
  65. live on;
  66.  
  67. # sample play/publish handlers
  68. #on_play http://localhost:8080/on_play;
  69. #on_publish http://localhost:8080/on_publish;
  70.  
  71. # sample recorder
  72. #recorder rec1 {
  73. # record all;
  74. # record_interval 30s;
  75. # record_path /tmp;
  76. # record_unique on;
  77. #}
  78.  
  79. # sample HLS
  80. #hls on;
  81. #hls_path /tmp/hls;
  82. #hls_sync 100ms;
  83. }
  84.  
  85. # Video on demand
  86. #application vod {
  87. # play /var/Videos;
  88. #}
  89.  
  90. # Video on demand over HTTP
  91. #application vod_http {
  92. # play http://localhost:8080/vod/;
  93. #}
  94. }
  95. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement