log-file.conf 931 B

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