winlin

simplify usage

@@ -270,6 +270,9 @@ if [ $SRS_HLS = YES ]; then @@ -270,6 +270,9 @@ if [ $SRS_HLS = YES ]; then
270 ln -sf `pwd`/research/players ${SRS_OBJS}/nginx/html/players && 270 ln -sf `pwd`/research/players ${SRS_OBJS}/nginx/html/players &&
271 rm -f ${SRS_OBJS}/nginx/crossdomain.xml && 271 rm -f ${SRS_OBJS}/nginx/crossdomain.xml &&
272 ln -sf `pwd`/research/players/crossdomain.xml ${SRS_OBJS}/nginx/html/crossdomain.xml 272 ln -sf `pwd`/research/players/crossdomain.xml ${SRS_OBJS}/nginx/html/crossdomain.xml
  273 +
  274 + # nginx.html to detect whether nginx is alive
  275 + echo "nginx is ok" > ${SRS_OBJS}/nginx/html/nginx.html
273 fi 276 fi
274 277
275 if [ $SRS_HLS = YES ]; then 278 if [ $SRS_HLS = YES ]; then
  1 +listen 1935;
  2 +vhost __defaultVhost__ {
  3 + hls {
  4 + enabled on;
  5 + hls_path ./objs/nginx/html;
  6 + hls_fragment 10;
  7 + hls_window 60;
  8 + }
  9 +}