mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
* Forward: add backend config and demo server for dynamic create forwarder to other server.(#1342) * Forward: if call forward backend failed, then return directly. * Forward: add API description and change return value format. * Forward: add backend conf file and wrapper function for backend service. * Forward: add backend comment in full.conf and update forward.backend.conf. * Forward: rename backend param and add comment tips.
15 lines
418 B
Text
15 lines
418 B
Text
# the config for srs to forward to slave service
|
|
# @see https://github.com/ossrs/srs/wiki/v5_CN_SampleForward
|
|
# @see full.conf for detail config.
|
|
|
|
listen 1935;
|
|
max_connections 1000;
|
|
pid ./objs/srs.backend.pid;
|
|
daemon off;
|
|
srs_log_tank console;
|
|
vhost __defaultVhost__ {
|
|
forward {
|
|
enabled on;
|
|
backend http://127.0.0.1:8085/api/v1/forward;
|
|
}
|
|
}
|