From a1652c41d898b71c12acc120636f10acf20f8c39 Mon Sep 17 00:00:00 2001 From: rad168 <86744795+rad168@users.noreply.github.com> Date: Tue, 17 Dec 2024 13:39:26 +0800 Subject: [PATCH] Update nginx.conf --- mytv/nginx.conf | 9 --------- 1 file changed, 9 deletions(-) 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; # 替换为您的域名