mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Update the demo config file for include directive (#2927)
* Update the demo config file for include directive * update config file * update config file
This commit is contained in:
parent
75cf9b3d19
commit
84951cbc74
3 changed files with 39 additions and 0 deletions
|
@ -2113,6 +2113,16 @@ vhost stream.transcode.srs.com {
|
|||
}
|
||||
}
|
||||
|
||||
#############################################################################################
|
||||
# In the config file, the include file can be anywhere in order to enhance the readability
|
||||
# of the config file and enable the reuse of part of the config file.
|
||||
# When using include files, make sure that the included files themselves have the correct SRS syntax,
|
||||
# that is, config directives and blocks, and then specify the paths to these files.
|
||||
#
|
||||
# @see https://github.com/ossrs/srs/issues/1399
|
||||
#############################################################################################
|
||||
include include.vhost.conf;
|
||||
|
||||
#############################################################################################
|
||||
# The origin cluster section
|
||||
#############################################################################################
|
||||
|
|
20
trunk/conf/include.conf
Normal file
20
trunk/conf/include.conf
Normal file
|
@ -0,0 +1,20 @@
|
|||
# include directive config for SRS.
|
||||
# @see full.conf for detail config.
|
||||
|
||||
listen 1935;
|
||||
max_connections 1000;
|
||||
srs_log_tank console;
|
||||
daemon off;
|
||||
|
||||
http_api {
|
||||
enabled on;
|
||||
listen 1985;
|
||||
}
|
||||
|
||||
http_server {
|
||||
enabled on;
|
||||
listen 8080;
|
||||
dir ./objs/nginx/html;
|
||||
}
|
||||
|
||||
include ./conf/include.vhost.conf;
|
9
trunk/conf/include.vhost.conf
Normal file
9
trunk/conf/include.vhost.conf
Normal file
|
@ -0,0 +1,9 @@
|
|||
vhost include.srs.com {
|
||||
hls {
|
||||
enabled on;
|
||||
}
|
||||
http_remux {
|
||||
enabled on;
|
||||
mount [vhost]/[app]/[stream].flv;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue