https.rtc.conf 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. listen 1935;
  2. max_connections 1000;
  3. daemon off;
  4. srs_log_tank console;
  5. http_server {
  6. enabled on;
  7. listen 8080;
  8. dir ./objs/nginx/html;
  9. https {
  10. enabled on;
  11. listen 8088;
  12. key ./conf/server.key;
  13. cert ./conf/server.crt;
  14. }
  15. }
  16. http_api {
  17. enabled on;
  18. listen 1985;
  19. https {
  20. enabled on;
  21. listen 1990;
  22. key ./conf/server.key;
  23. cert ./conf/server.crt;
  24. }
  25. }
  26. stats {
  27. network 0;
  28. }
  29. rtc_server {
  30. enabled on;
  31. listen 8000; # UDP port
  32. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
  33. candidate $CANDIDATE;
  34. }
  35. vhost __defaultVhost__ {
  36. rtc {
  37. enabled on;
  38. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
  39. rtmp_to_rtc off;
  40. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
  41. rtc_to_rtmp off;
  42. }
  43. http_remux {
  44. enabled on;
  45. mount [vhost]/[app]/[stream].flv;
  46. }
  47. }