origin2-for-proxy.conf 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. listen 19352;
  2. max_connections 1000;
  3. pid objs/origin2.pid;
  4. daemon off;
  5. srs_log_tank console;
  6. http_server {
  7. enabled on;
  8. listen 8082;
  9. dir ./objs/nginx/html;
  10. }
  11. http_api {
  12. enabled on;
  13. listen 19853;
  14. }
  15. rtc_server {
  16. enabled on;
  17. listen 8001; # UDP port
  18. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
  19. candidate $CANDIDATE;
  20. }
  21. srt_server {
  22. enabled on;
  23. listen 10082;
  24. tsbpdmode off;
  25. tlpktdrop off;
  26. }
  27. heartbeat {
  28. enabled on;
  29. interval 9;
  30. url http://127.0.0.1:12025/api/v1/srs/register;
  31. device_id origin2;
  32. ports on;
  33. }
  34. vhost __defaultVhost__ {
  35. http_remux {
  36. enabled on;
  37. mount [vhost]/[app]/[stream].flv;
  38. }
  39. hls {
  40. enabled on;
  41. hls_path ./objs/nginx/html;
  42. hls_fragment 10;
  43. hls_window 60;
  44. }
  45. rtc {
  46. enabled on;
  47. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
  48. rtmp_to_rtc on;
  49. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
  50. rtc_to_rtmp on;
  51. }
  52. srt {
  53. enabled on;
  54. srt_to_rtmp on;
  55. }
  56. }