force.daemon.conf 845 B

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