2
0

https.hooks.callback.conf 590 B

1234567891011121314151617
  1. # http-hooks or https-callbacks config for srs.
  2. # @see https://github.com/ossrs/srs/issues/1657#issuecomment-720889906
  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. http_hooks {
  10. enabled on;
  11. on_publish https://127.0.0.1:443/api/v1/streams;
  12. on_unpublish https://127.0.0.1:443/api/v1/streams;
  13. on_play https://127.0.0.1:443/api/v1/sessions;
  14. on_stop https://127.0.0.1:443/api/v1/sessions;
  15. }
  16. }