vetoketju

nginx rtsp server .conf example

Jun 7th, 2014
1,152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. user root;
  2. worker_processes 1;
  3. events {
  4. worker_connections 1024;
  5. }
  6.  
  7. http {
  8. include /etc/nginx/mime.types;
  9. default_type application/octet-stream;
  10. sendfile on;
  11. keepalive_timeout 65;
  12. server {
  13. listen 80;
  14. server_name localhost;
  15.  
  16. location /stat {
  17. rtmp_stat all;
  18. rtmp_stat_stylesheet stat.xsl;
  19. }
  20.  
  21. location /stat.xsl {
  22. root /usr/src/nginx-rtmp-module;
  23. }
  24.  
  25. # rtmp control
  26. location /control {
  27. rtmp_control all;
  28. }
  29. error_page 500 502 503 504 /50x.html;
  30. location = /50x.html {
  31. root html;
  32. }
  33. }
  34. }
  35. rtmp {
  36. server {
  37. listen 1935;
  38. #chunk_size 8192;
  39. ping 30s;
  40. notify_method get;
  41. application rtmp{
  42. live on;
  43. }
  44. }
  45. }
Add Comment
Please, Sign In to add comment