mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #1657, add https configs
This commit is contained in:
parent
385e055c7b
commit
5709ee1b63
5 changed files with 161 additions and 26 deletions
19
trunk/conf/https.hooks.callback.conf
Normal file
19
trunk/conf/https.hooks.callback.conf
Normal file
|
@ -0,0 +1,19 @@
|
|||
# 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue