2
0

vm.conf 998 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. listen 1935;
  2. max_connections 1000;
  3. daemon on;
  4. srs_log_tank file;
  5. # For LightHouse VM to run SRS, never enable docker.
  6. in_docker off;
  7. disable_daemon_for_docker off;
  8. auto_reload_for_docker off;
  9. http_server {
  10. enabled on;
  11. listen 8080;
  12. dir ./objs/nginx/html;
  13. }
  14. http_api {
  15. enabled on;
  16. listen 1985;
  17. }
  18. stats {
  19. network 0;
  20. }
  21. rtc_server {
  22. enabled on;
  23. listen 8000; # UDP port
  24. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
  25. candidate $CANDIDATE;
  26. }
  27. vhost __defaultVhost__ {
  28. hls {
  29. enabled on;
  30. }
  31. http_remux {
  32. enabled on;
  33. mount [vhost]/[app]/[stream].flv;
  34. }
  35. rtc {
  36. enabled on;
  37. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
  38. rtmp_to_rtc on;
  39. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
  40. rtc_to_rtmp on;
  41. }
  42. }