mirror of
https://github.com/rad168/iptv.git
synced 2025-12-17 23:34:38 +08:00
Update nginx.conf
This commit is contained in:
@@ -862,6 +862,21 @@ http {
|
|||||||
proxy_set_header Host mytv.cdn.com.mp; # 确保请求的 Host 匹配 Cloudflare 配置
|
proxy_set_header Host mytv.cdn.com.mp; # 确保请求的 Host 匹配 Cloudflare 配置
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# /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/ 子目录
|
# /hw/ 子目录
|
||||||
location /hw/ {
|
location /hw/ {
|
||||||
if ($auth_ok = 0) {
|
if ($auth_ok = 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user