2
0

compatible.conf 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. listen 1935;
  2. pid ./objs/srs.pid;
  3. srs_log_tank console;
  4. srs_log_level trace;
  5. max_connections 1000;
  6. daemon off;
  7. http_api {
  8. enabled on;
  9. listen 1985;
  10. crossdomain on;
  11. raw_api {
  12. enabled on;
  13. allow_reload on;
  14. allow_query on;
  15. allow_update on;
  16. }
  17. }
  18. # for SRS1.
  19. http_stream {
  20. enabled on;
  21. listen 8080;
  22. dir ./objs/nginx/html;
  23. }
  24. vhost __defaultVhost__ {
  25. # for SRS1.
  26. http {
  27. enabled on;
  28. mount [vhost]/hls;
  29. dir ./objs/nginx/html/hls;
  30. }
  31. # for SRS1.
  32. refer github.com github.io;
  33. refer_publish github.com github.io;
  34. refer_play github.com github.io;
  35. # for SRS2
  36. publish_1stpkt_timeout 20000;
  37. publish_normal_timeout 7000;
  38. # for SRS2
  39. mr {
  40. enabled off;
  41. latency 350;
  42. }
  43. # for SRS1
  44. mode remote;
  45. origin 127.0.0.1:1935 localhost:1935;
  46. token_traverse off;
  47. vhost same.edge.srs.com;
  48. debug_srs_upnode off;
  49. # for SRS1
  50. forward 127.0.0.1:1936 127.0.0.1:1937;
  51. # for SRS1
  52. time_jitter full;
  53. # for SRS2
  54. mix_correct off;
  55. #for SRS1
  56. atc on;
  57. atc_auto on;
  58. # for SRS2
  59. mw_latency 100;
  60. # for SRS1
  61. gop_cache off;
  62. queue_length 10;
  63. # for SRS2
  64. send_min_interval 10.0;
  65. reduce_sequence_header on;
  66. }