docker.conf 1008 B

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