From 0a45c04e24bb9dcd592c89b83a5bed7765373203 Mon Sep 17 00:00:00 2001 From: rad168 <86744795+rad168@users.noreply.github.com> Date: Sun, 16 Mar 2025 18:56:01 +0800 Subject: [PATCH] Update nginx.conf --- mytv/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mytv/nginx.conf b/mytv/nginx.conf index 7e28cd8..8f36128 100644 --- a/mytv/nginx.conf +++ b/mytv/nginx.conf @@ -495,7 +495,7 @@ http { proxy_pass https://www.stream-link.org; # 替换为相对路径 - sub_filter 'https://sc2025.stream-link.org' 'http://$server_addr:30002'; + sub_filter 'https://sc2025.stream-link.org' 'http://$host:30002'; sub_filter_once off; #sub_filter_types application/vnd.apple.mpegurl text/plain; @@ -516,7 +516,7 @@ http { proxy_set_header Host sc2025.stream-link.org; proxy_set_header User-Agent "TiviMate/5.1.0"; proxy_set_header Referer "https://sc2025.stream-link.org/"; - proxy_redirect https://live-edge-06.stream-link.org/ http://$server_addr:30003/; + proxy_redirect https://live-edge-06.stream-link.org/ http://$host:30003/; } }