ossrs / srs

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

Config: Improve env config to support multi values. v7.0.2 #4092

Closed suzp1984 closed 3 months ago

suzp1984 commented 5 months 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.