transform.edge.conf 788 B

1234567891011121314151617181920212223242526272829
  1. # the config for srs origin-edge cluster
  2. # @see https://github.com/ossrs/srs/wiki/v2_CN_Edge#transform-vhost
  3. # @see full.conf for detail config.
  4. listen 1935;
  5. max_connections 1000;
  6. daemon off;
  7. srs_log_tank console;
  8. vhost __defaultVhost__ {
  9. }
  10. vhost source.srs.com {
  11. ingest livestream {
  12. enabled on;
  13. input {
  14. type file;
  15. url ./doc/source.200kbps.768x320.flv;
  16. }
  17. ffmpeg ./objs/ffmpeg/bin/ffmpeg;
  18. engine {
  19. enabled off;
  20. output rtmp://127.0.0.1:[port]/live?vhost=[vhost]/livestream;
  21. }
  22. }
  23. }
  24. vhost transform.srs.edge.com {
  25. mode remote;
  26. origin 127.0.0.1:1935;
  27. vhost source.srs.com;
  28. }