http.api.one.port2.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 8080;
  10. https {
  11. enabled on;
  12. listen 8088;
  13. key ./conf/server.key;
  14. cert ./conf/server.crt;
  15. }
  16. }
  17. http_server {
  18. enabled on;
  19. listen 8080;
  20. dir ./objs/nginx/html;
  21. https {
  22. enabled on;
  23. listen 8088;
  24. key ./conf/server.key;
  25. cert ./conf/server.crt;
  26. }
  27. }
  28. rtc_server {
  29. enabled on;
  30. listen 8000; # UDP port
  31. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
  32. candidate $CANDIDATE;
  33. }
  34. vhost __defaultVhost__ {
  35. hls {
  36. enabled on;
  37. }
  38. http_remux {
  39. enabled on;
  40. mount [vhost]/[app]/[stream].flv;
  41. }
  42. rtc {
  43. enabled on;
  44. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
  45. rtmp_to_rtc off;
  46. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
  47. rtc_to_rtmp off;
  48. }
  49. }