From 8d424b9d05694dd0acbe1c18c3723b70a94f318e Mon Sep 17 00:00:00 2001 From: rad168 <86744795+rad168@users.noreply.github.com> Date: Sun, 6 Jul 2025 15:01:32 +0800 Subject: [PATCH] Update nginx.conf --- mytv/alpine/nginx.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mytv/alpine/nginx.conf b/mytv/alpine/nginx.conf index f5ada1e..5028c76 100644 --- a/mytv/alpine/nginx.conf +++ b/mytv/alpine/nginx.conf @@ -671,7 +671,7 @@ http { # 代理头设置 proxy_set_header X-Real-IP $remote_addr; # 传递客户端真实 IP proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # 支持多级代理 - proxy_set_header Host s1.m16tv.cfd; # 确保请求的 Host 匹配 Cloudflare 配置 + proxy_set_header Host s1.tvm4a1.cfd; # 确保请求的 Host 匹配 Cloudflare 配置 # SSL 配置 proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # 指定 SSL 协议 @@ -698,7 +698,7 @@ http { return 302 $redirect_uri; } - proxy_pass http://s1.m16tv.cfd; + proxy_pass http://s1.tvm4a1.cfd; } @@ -713,7 +713,7 @@ http { return 302 $redirect_uri; } - proxy_pass http://s1.m16tv.cfd; # 替换为您的源站地址 + proxy_pass http://s1.tvm4a1.cfd; # 替换为您的源站地址 proxy_cache_valid 200 206 60s; # 缓存 .ts 文件 60 秒 expires 60s; # 设置浏览器端缓存 60 秒 @@ -737,7 +737,7 @@ http { add_header Content-Disposition "inline" always; # 替换为相对路径 - sub_filter 'https://s1.m16tv.cfd' 'http://$host:20008'; + sub_filter 'https://s1.tvm4a1.cfd' 'http://$host:20008'; sub_filter 'AKTV.m3u8' 'AKTV.m3u8?token=$arg_token'; sub_filter_once off; sub_filter_types *; # 对所有 MIME 类型进行替换