PCDVD數位科技討論區

PCDVD數位科技討論區 (https://www.pcdvd.com.tw/index.php)
-   疑難雜症區 (https://www.pcdvd.com.tw/forumdisplay.php?f=34)
-   -   有人熟 Nginx 的 secure_link 嗎? (https://www.pcdvd.com.tw/showthread.php?t=1133759)

CYK 2017-08-26 02:32 PM

有人熟 Nginx 的 secure_link 嗎?
 
我用 Nginx 的 rtmp 及 hls 做串流主機
想用 secure_link 來保護串流源

但.m3u8 會呼叫 .ts 的檔案

例如我的串流為
http://192.168.1.39/hls/1111.m3u8?s...PxIGvwl9frrXP5A
可是連到 .ts 時就會變成
http://192.168.1.39/hls/1111-5.ts

後面的加密資料不見了...

這樣有人知道要怎麼設定嗎?

CYK 2017-08-26 09:39 PM

忘了附上設定資料

location /hls {


root /usr/local/etc/nginx/html;

secure_link $arg_st;
secure_link_md5 111$uri;

if ($secure_link = "") {
return 403;
}

if ($secure_link = "0") {
return 410;
}

}


所有的時間均為GMT +8。 現在的時間是03:38 PM.

vBulletin Version 3.0.1
powered_by_vbulletin 2024。