1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine the conf, use srs3 style

This commit is contained in:
winlin 2015-09-11 08:21:06 +08:00
parent 77d21f7e32
commit 7ae76b579e
6 changed files with 25 additions and 15 deletions

View file

@ -11,7 +11,9 @@ pid ./objs/srs.demo.19350.pid;
vhost __defaultVhost__ {
enabled on;
gop_cache on;
play {
gop_cache on;
}
hls {
enabled on;
hls_path ./objs/nginx/html/forward;

View file

@ -445,17 +445,19 @@ vhost play.srs.com {
# vhost for time jitter
vhost jitter.srs.com {
# @see play.srs.com
time_jitter full;
# @see play.srs.com
mix_correct off;
play {
time_jitter full;
mix_correct off;
}
}
# vhost for atc.
vhost atc.srs.com {
# @see play.srs.com
atc on;
# @see play.srs.com
atc_auto on;
play {
atc on;
atc_auto on;
}
}
# the MR(merged-read) setting for publisher.

View file

@ -12,8 +12,10 @@ http_server {
dir ./objs/nginx/html;
}
vhost __defaultVhost__ {
mode remote;
origin 127.0.0.1;
cluster {
mode remote;
origin 127.0.0.1;
}
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;

View file

@ -12,8 +12,10 @@ http_server {
dir ./objs/nginx/html;
}
vhost __defaultVhost__ {
mode remote;
origin 127.0.0.1;
cluster {
mode remote;
origin 127.0.0.1;
}
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;

View file

@ -9,7 +9,7 @@ http_server {
dir ./objs/nginx/html;
}
vhost ossrs.net {
http {
http_static {
enabled on;
mount [vhost]/;
dir ./objs/nginx/html;

View file

@ -21,7 +21,9 @@ vhost source.srs.com {
}
}
vhost transform.srs.edge.com {
mode remote;
origin 127.0.0.1:1935;
vhost source.srs.com;
cluster {
mode remote;
origin 127.0.0.1:1935;
vhost source.srs.com;
}
}