http.api.dedicated.conf 898 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # main 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. dir ./objs/nginx/html;
  15. }
  16. rtc_server {
  17. enabled on;
  18. listen 8000; # UDP port
  19. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
  20. candidate $CANDIDATE;
  21. }
  22. vhost __defaultVhost__ {
  23. hls {
  24. enabled on;
  25. }
  26. http_remux {
  27. enabled on;
  28. mount [vhost]/[app]/[stream].flv;
  29. }
  30. rtc {
  31. enabled on;
  32. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
  33. rtmp_to_rtc off;
  34. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
  35. rtc_to_rtmp off;
  36. }
  37. }