prometheus.conf 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # no-daemon and write log to console 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. }
  15. rtc_server {
  16. enabled on;
  17. listen 8000; # UDP port
  18. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
  19. candidate $CANDIDATE;
  20. }
  21. # Prometheus exporter config.
  22. exporter {
  23. enabled on;
  24. listen 9972;
  25. label cn-beijing;
  26. tag cn-edge;
  27. }
  28. vhost __defaultVhost__ {
  29. hls {
  30. enabled on;
  31. }
  32. http_remux {
  33. enabled on;
  34. mount [vhost]/[app]/[stream].flv;
  35. }
  36. rtc {
  37. enabled on;
  38. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
  39. rtmp_to_rtc on;
  40. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
  41. rtc_to_rtmp on;
  42. }
  43. }