2
0

srt.conf 748 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 1985;
  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 300;
  21. recvlatency 300;
  22. }
  23. # @doc https://github.com/ossrs/srs/issues/1147#issuecomment-577607026
  24. vhost __defaultVhost__ {
  25. http_remux {
  26. enabled on;
  27. mount [vhost]/[app]/[stream].flv;
  28. }
  29. }
  30. # For SRT to use vhost.
  31. vhost srs.srt.com.cn {
  32. }
  33. stats {
  34. network 0;
  35. disk sda sdb xvda xvdb;
  36. }