技术支持 2022年8月24日
目的,将/live/xxx.m3u8路径转为 /hls/xxx/playlist.m3u8
location ~ /live/ {
rewrite "^\/live\/(.).m3u8$" /hls/$1/playlist.m3u8 break;
rewrite "^\/live\/(.)-(.*).ts$" /hls/$1/$1-$2.ts break;
proxy_pass http://localhost:9000;
break;
}