srs.conf 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # main config for srs.
  2. # @see full.conf for detail config.
  3. daemon off;
  4. pid /var/lib/srs/srs.pid;
  5. work_dir /var/lib/srs;
  6. listen 1935;
  7. max_connections 1000;
  8. srs_log_tank file;
  9. srs_log_file /var/log/srs/srs.log;
  10. http_api {
  11. enabled on;
  12. listen 1985;
  13. }
  14. http_server {
  15. enabled on;
  16. listen 8080;
  17. dir /usr/share/srs/html;
  18. }
  19. rtc_server {
  20. enabled on;
  21. listen 8000;
  22. # @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#config-candidate
  23. candidate $CANDIDATE;
  24. }
  25. stats {
  26. network 0;
  27. disk sda sdb xvda xvdb;
  28. }
  29. vhost __defaultVhost__ {
  30. hls {
  31. enabled on;
  32. }
  33. http_remux {
  34. enabled on;
  35. mount [vhost]/[app]/[stream].flv;
  36. }
  37. rtc {
  38. enabled on;
  39. # @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtmp-to-rtc
  40. rtmp_to_rtc off;
  41. # @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtc-to-rtmp
  42. rtc_to_rtmp off;
  43. }
  44. }