diff --git a/mytv/nginx.conf b/mytv/nginx.conf index 083e5b5..757f765 100644 --- a/mytv/nginx.conf +++ b/mytv/nginx.conf @@ -54,15 +54,6 @@ http { include /etc/nginx/conf.d/*.conf; 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 { listen 20000; server_name cdn.1678520.xyz; # 替换为您的域名