mirror of
https://github.com/rad168/iptv.git
synced 2025-12-19 00:05:15 +08:00
Update nginx.conf
This commit is contained in:
@@ -54,15 +54,6 @@ http {
|
|||||||
include /etc/nginx/conf.d/*.conf;
|
include /etc/nginx/conf.d/*.conf;
|
||||||
include /etc/nginx/sites-enabled/*;
|
include /etc/nginx/sites-enabled/*;
|
||||||
|
|
||||||
# 定义一个 map,用来检查查询字符串或路径中是否包含 .ts 或 .aac
|
|
||||||
map $uri $is_media {
|
|
||||||
default 0;
|
|
||||||
~*\.ts$ 1; # 匹配路径中的 .ts 文件
|
|
||||||
~*\.aac$ 1; # 匹配路径中的 .aac 文件
|
|
||||||
~*ts=[^&]+\.ts$ 1; # 匹配查询字符串中的 ts 参数
|
|
||||||
~*aac=[^&]+\.aac$ 1; # 匹配查询字符串中的 aac 参数
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 20000;
|
listen 20000;
|
||||||
server_name cdn.1678520.xyz; # 替换为您的域名
|
server_name cdn.1678520.xyz; # 替换为您的域名
|
||||||
|
|||||||
Reference in New Issue
Block a user