console.conf 887 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # no-daemon and write log to console config for srs.
  2. # @see full.conf for detail config.
  3. listen 1935;
  4. max_connections 1000;
  5. daemon off;
  6. srs_log_tank console;
  7. http_api {
  8. enabled on;
  9. listen 1985;
  10. }
  11. http_server {
  12. enabled on;
  13. listen 8080;
  14. }
  15. rtc_server {
  16. enabled on;
  17. listen 8000; # UDP port
  18. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
  19. candidate $CANDIDATE;
  20. }
  21. vhost __defaultVhost__ {
  22. hls {
  23. enabled on;
  24. }
  25. http_remux {
  26. enabled on;
  27. mount [vhost]/[app]/[stream].flv;
  28. }
  29. rtc {
  30. enabled on;
  31. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
  32. rtmp_to_rtc on;
  33. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
  34. rtc_to_rtmp on;
  35. }
  36. }