From 3e92d6aeb8c14f37f694c6e0492d674a58f99d38 Mon Sep 17 00:00:00 2001 From: rad168 <86744795+rad168@users.noreply.github.com> Date: Fri, 16 May 2025 03:51:20 +0800 Subject: [PATCH] Update nginx.conf --- mytv/alpine/nginx.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/mytv/alpine/nginx.conf b/mytv/alpine/nginx.conf index f7a4900..8332022 100644 --- a/mytv/alpine/nginx.conf +++ b/mytv/alpine/nginx.conf @@ -871,6 +871,21 @@ http { } + # /o12/ 子目录 + location /o12/ { + 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://o12.1678520.xyz/; + proxy_set_header Host o12.1678520.xyz; # 确保请求的 Host 匹配 Cloudflare 配置 + } + # /hw/ 子目录 location /hw/ { if ($auth_ok = 0) {