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

jump nginx index to api-server, for ie crossdomain.

This commit is contained in:
winlin 2013-12-26 09:50:10 +08:00
parent c23b133fdc
commit b6280f3804

View file

@ -261,11 +261,8 @@ if [ $SRS_HLS = YES ]; then
ln -sf `pwd`/research/players/crossdomain.xml ${SRS_OBJS}/nginx/html/crossdomain.xml ln -sf `pwd`/research/players/crossdomain.xml ${SRS_OBJS}/nginx/html/crossdomain.xml
# override the default index. # override the default index.
cat <<END > ${SRS_OBJS}/nginx/html/index.html rm -f ${SRS_OBJS}/nginx/html/index.html &&
<script type="text/javascript"> ln -sf `pwd`/research/players/nginx_index.html ${SRS_OBJS}/nginx/html/index.html
window.location.href = "players/index.html";
</script>
END
fi fi
if [ $SRS_HLS = YES ]; then if [ $SRS_HLS = YES ]; then
@ -302,7 +299,9 @@ fi
echo "link players to cherrypy static-dir" echo "link players to cherrypy static-dir"
rm -f research/api-server/static-dir/players && rm -f research/api-server/static-dir/players &&
ln -sf `pwd`/research/players research/api-server/static-dir/players ln -sf `pwd`/research/players research/api-server/static-dir/players &&
rm -f research/api-server/static-dir/crossdomain.xml &&
ln -sf `pwd`/research/players/crossdomain.xml research/api-server/static-dir/crossdomain.xml
##################################################################################### #####################################################################################
# openssl, for rtmp complex handshake # openssl, for rtmp complex handshake