ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
24.7k stars 5.28k forks source link

fix http_hooks env don't support multi values; #4092

Open suzp1984 opened 1 week ago

suzp1984 commented 1 week ago
  1. add on_connect & on_close directives to conf/full.conf;
  2. let http_hooks env overwrite support multi values; e.g. SRS_VHOST_HTTP_HOOKS_ON_CONNECT="http://127.0.0.1/api/connect http://localhost/api/connect"

related to https://github.com/ossrs/srs/issues/1222#issuecomment-2170424703 Above comments said http_hook env may not works as expected, as I found there are still has some issue in http_hooks env configuration, but this PR may not target above problem.