mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 20:01:56 +00:00
19 lines
714 B
Text
19 lines
714 B
Text
# http-hooks or https-callbacks config for srs.
|
|
# @see https://github.com/ossrs/srs/issues/1657#issuecomment-720889906
|
|
# @see full.conf for detail config.
|
|
|
|
listen 1935;
|
|
max_connections 1000;
|
|
daemon off;
|
|
srs_log_tank console;
|
|
vhost __defaultVhost__ {
|
|
http_hooks {
|
|
enabled on;
|
|
on_connect https://127.0.0.1:443/api/v1/clients;
|
|
on_close https://127.0.0.1:443/api/v1/clients;
|
|
on_publish https://127.0.0.1:443/api/v1/streams;
|
|
on_unpublish https://127.0.0.1:443/api/v1/streams;
|
|
on_play https://127.0.0.1:443/api/v1/sessions;
|
|
on_stop https://127.0.0.1:443/api/v1/sessions;
|
|
}
|
|
}
|