1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 03:41:55 +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
# override the default index.
cat <<END > ${SRS_OBJS}/nginx/html/index.html
<script type="text/javascript">
window.location.href = "players/index.html";
</script>
END
rm -f ${SRS_OBJS}/nginx/html/index.html &&
ln -sf `pwd`/research/players/nginx_index.html ${SRS_OBJS}/nginx/html/index.html
fi
if [ $SRS_HLS = YES ]; then
@ -302,7 +299,9 @@ fi
echo "link players to cherrypy static-dir"
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