Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. #user nobody;
  2. worker_processes 1;
  3.  
  4. error_log logs/error.log;
  5. error_log logs/error.log notice;
  6. error_log logs/error.log info;
  7.  
  8. #pid logs/nginx.pid;
  9.  
  10.  
  11. events {
  12. worker_connections 1024;
  13. }
  14.  
  15. http {
  16. include mime.types;
  17. default_type application/octet-stream;
  18. sendfile on;
  19. keepalive_timeout 65;
  20.  
  21. server {
  22. listen 80;
  23. server_name localhost;
  24.  
  25. # rtmp stat
  26. location /stat {
  27. rtmp_stat all;
  28. rtmp_stat_stylesheet stat.xsl;
  29. }
  30. location /stat.xsl {
  31. # you can move stat.xsl to a different location
  32. root /usr/local/nginx/html;
  33. }
  34.  
  35. # rtmp control
  36. location /control {
  37. rtmp_control all;
  38. }
  39.  
  40. error_page 500 502 503 504 /50x.html;
  41. location = /50x.html {
  42. root html;
  43. }
  44. }
  45. }
  46.  
  47. rtmp {
  48. server {
  49. listen 1935;
  50. chunk_size 4096;
  51.  
  52. application test {
  53. live on;
  54. record off;
  55. }
  56. }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement