2
0

clion-srt.conf 904 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # SRT config.
  2. listen 1935;
  3. max_connections 1000;
  4. daemon off;
  5. srs_log_tank console;
  6. http_api {
  7. enabled on;
  8. listen 8080;
  9. }
  10. http_server {
  11. enabled on;
  12. listen 8080;
  13. dir ./objs/nginx/html;
  14. }
  15. srt_server {
  16. enabled on;
  17. listen 10080;
  18. maxbw 1000000000;
  19. connect_timeout 4000;
  20. peerlatency 0;
  21. recvlatency 0;
  22. latency 0;
  23. tsbpdmode off;
  24. tlpktdrop off;
  25. sendbuf 2000000;
  26. recvbuf 2000000;
  27. }
  28. # @doc https://github.com/ossrs/srs/issues/1147#issuecomment-577607026
  29. vhost __defaultVhost__ {
  30. srt {
  31. enabled on;
  32. srt_to_rtmp on;
  33. }
  34. http_remux {
  35. enabled on;
  36. mount [vhost]/[app]/[stream].flv;
  37. }
  38. }
  39. # For SRT to use vhost.
  40. vhost srs.srt.com.cn {
  41. }
  42. stats {
  43. network 0;
  44. disk sda sdb xvda xvdb;
  45. }