From 1c4c64911d4317cd07aba37528e0f951ccce9e6d Mon Sep 17 00:00:00 2001 From: rad168 <86744795+rad168@users.noreply.github.com> Date: Fri, 13 Jun 2025 00:52:43 +0800 Subject: [PATCH] Update nginx.conf --- mytv/nginx.conf | 45 --------------------------------------------- 1 file changed, 45 deletions(-) diff --git a/mytv/nginx.conf b/mytv/nginx.conf index d8f96b2..e0c6827 100644 --- a/mytv/nginx.conf +++ b/mytv/nginx.conf @@ -877,51 +877,6 @@ http { proxy_set_header Host o12.1678520.xyz; # 确保请求的 Host 匹配 Cloudflare 配置 } - # /hw/ 子目录 - location /hw/ { - if ($auth_ok = 0) { - return 302 https://cdn.1678520.xyz/403?mytv; - } - - if ($arg_token) { - add_header Set-Cookie "token=$arg_token; Path=/"; - return 302 $redirect_uri; - } - - proxy_pass https://hw.1678520.xyz/; - proxy_set_header Host hw.1678520.xyz; # 确保请求的 Host 匹配 Cloudflare 配置 - } - - # /jxiptv/ 子目录 - location /jxiptv/ { - if ($auth_ok = 0) { - return 302 https://cdn.1678520.xyz/403?mytv; - } - - if ($arg_token) { - add_header Set-Cookie "token=$arg_token; Path=/"; - return 302 $redirect_uri; - } - - proxy_pass http://jxiptv.dpdns.org/; - proxy_set_header Host jxiptv.dpdns.org; # 确保请求的 Host 匹配 Cloudflare 配置 - } - - # /huya/ 子目录 - location /huya/ { - if ($auth_ok = 0) { - return 302 https://cdn.1678520.xyz/403?mytv; - } - - if ($arg_token) { - add_header Set-Cookie "token=$arg_token; Path=/"; - return 302 $redirect_uri; - } - - proxy_pass http://huya.jxiptv.dpdns.org/; - proxy_set_header Host huya.jxiptv.dpdns.org; # 确保请求的 Host 匹配 Cloudflare 配置 - } - } server {