mirror of
https://github.com/rad168/iptv.git
synced 2025-12-22 09:44:54 +08:00
Update nginx.conf
This commit is contained in:
@@ -51,6 +51,17 @@ http {
|
||||
#"abc" 1; # 可选:支持多个 token
|
||||
}
|
||||
|
||||
# 去除 token 参数,保留其他参数
|
||||
map $args $args_clean {
|
||||
default $args;
|
||||
~^(.*)(^|&)token=[^&]*&?(.*)$ $1$3;
|
||||
}
|
||||
|
||||
# 根据是否有参数构造跳转地址
|
||||
map $args_clean $redirect_uri {
|
||||
"" $uri; # 没参数:只保留路径
|
||||
default $uri?$args_clean; # 有参数:加 ?
|
||||
}
|
||||
|
||||
# 反代设置
|
||||
server {
|
||||
@@ -100,6 +111,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://cdn.16899.ggff.net;
|
||||
@@ -114,6 +126,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://cdn.16899.ggff.net; # 替换为您的源站地址
|
||||
@@ -171,6 +184,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://live.cdn.com.mp;
|
||||
@@ -185,6 +199,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://live.cdn.com.mp; # 替换为您的源站地址
|
||||
@@ -242,6 +257,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://smt.1789.dpdns.org;
|
||||
@@ -256,6 +272,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://smt.1789.dpdns.org; # 替换为您的源站地址
|
||||
@@ -313,6 +330,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://cdn6.16899.ggff.net;
|
||||
@@ -327,6 +345,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://cdn6.16899.ggff.net; # 替换为您的源站地址
|
||||
@@ -384,6 +403,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://v2h.1789.dpdns.org;
|
||||
@@ -398,6 +418,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://v2h.1789.dpdns.org; # 替换为您的源站地址
|
||||
@@ -455,6 +476,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://live.tvfix.org;
|
||||
@@ -469,6 +491,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://live.tvfix.org; # 替换为您的源站地址
|
||||
@@ -526,6 +549,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://cdn5.zone.id;
|
||||
@@ -540,6 +564,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://cdn5.zone.id; # 替换为您的源站地址
|
||||
@@ -597,6 +622,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://cdn2.16899.ggff.net;
|
||||
@@ -611,6 +637,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://cdn2.16899.ggff.net; # 替换为您的源站地址
|
||||
@@ -668,6 +695,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass http://aktv_stream.m16tv.cfd;
|
||||
@@ -682,6 +710,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass http://aktv_stream.m16tv.cfd; # 替换为您的源站地址
|
||||
@@ -762,6 +791,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://cdn8.zone.id;
|
||||
@@ -776,6 +806,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://cdn8.zone.id; # 替换为您的源站地址
|
||||
@@ -832,6 +863,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://mytv.cdn.com.mp;
|
||||
@@ -847,6 +879,7 @@ http {
|
||||
|
||||
if ($arg_token) {
|
||||
add_header Set-Cookie "token=$arg_token; Path=/";
|
||||
return 302 $redirect_uri;
|
||||
}
|
||||
|
||||
proxy_pass https://hw.1678520.xyz/;
|
||||
|
||||
Reference in New Issue
Block a user