mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the config structure, compatible with SRS1/2
This commit is contained in:
parent
a79e19599c
commit
7ef3ff90c0
6 changed files with 424 additions and 225 deletions
35
trunk/conf/compatible.conf
Normal file
35
trunk/conf/compatible.conf
Normal file
|
@ -0,0 +1,35 @@
|
|||
listen 1935;
|
||||
pid ./objs/srs.pid;
|
||||
srs_log_tank console;
|
||||
srs_log_level trace;
|
||||
max_connections 1000;
|
||||
daemon off;
|
||||
http_api {
|
||||
enabled on;
|
||||
listen 1985;
|
||||
crossdomain on;
|
||||
raw_api {
|
||||
enabled on;
|
||||
allow_reload on;
|
||||
allow_query on;
|
||||
}
|
||||
}
|
||||
# for SRS1.
|
||||
http_stream {
|
||||
enabled on;
|
||||
listen 8080;
|
||||
dir ./objs/nginx/html;
|
||||
}
|
||||
vhost __defaultVhost__ {
|
||||
# for SRS2.
|
||||
refer github.com github.io;
|
||||
refer_publish github.com github.io;
|
||||
refer_play github.com github.io;
|
||||
|
||||
# for SRS1.
|
||||
http {
|
||||
enabled on;
|
||||
mount [vhost]/hls;
|
||||
dir ./objs/nginx/html/hls;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue