1
0
Fork 0
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:
mapengfei53 2022-03-05 17:43:20 +08:00 committed by GitHub
parent 75cf9b3d19
commit 84951cbc74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 0 deletions

View file

@ -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
View 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;

View file

@ -0,0 +1,9 @@
vhost include.srs.com {
hls {
enabled on;
}
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
}
}