Update nginx.conf

This commit is contained in:
rad168
2025-06-24 07:07:55 +08:00
committed by GitHub
parent cf3e12177d
commit e6ed0a18a8

View File

@@ -87,7 +87,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 cdn.16899.ggff.net; # 确保请求的 Host 匹配 Cloudflare 配置
proxy_set_header Host cdn.veryfast.filegear-sg.me; # 确保请求的 Host 匹配 Cloudflare 配置
# SSL 配置
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # 指定 SSL 协议
@@ -114,7 +114,7 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://cdn.16899.ggff.net;
proxy_pass http://cdn.veryfast.filegear-sg.me;
}
@@ -129,7 +129,7 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://cdn.16899.ggff.net; # 替换为您的源站地址
proxy_pass http://cdn.veryfast.filegear-sg.me; # 替换为您的源站地址
proxy_cache_valid 200 206 60s; # 缓存 .ts 文件 60 秒
expires 60s; # 设置浏览器端缓存 60 秒
@@ -160,7 +160,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 cdn3.163189.xyz; # 确保请求的 Host 匹配 Cloudflare 配置
proxy_set_header Host cdn3.veryfast.filegear-sg.me; # 确保请求的 Host 匹配 Cloudflare 配置
# SSL 配置
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # 指定 SSL 协议
@@ -187,7 +187,7 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://cdn3.163189.xyz;
proxy_pass http://cdn3.veryfast.filegear-sg.me;
}
@@ -202,7 +202,7 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://cdn3.163189.xyz; # 替换为您的源站地址
proxy_pass http://cdn3.veryfast.filegear-sg.me; # 替换为您的源站地址
proxy_cache_valid 200 206 60s; # 缓存 .ts 文件 60 秒
expires 60s; # 设置浏览器端缓存 60 秒
@@ -233,7 +233,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 smt.1789.dpdns.org; # 确保请求的 Host 匹配 Cloudflare 配置
proxy_set_header Host smt.veryfast.filegear-sg.me; # 确保请求的 Host 匹配 Cloudflare 配置
# SSL 配置
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # 指定 SSL 协议
@@ -260,7 +260,7 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://smt.1789.dpdns.org;
proxy_pass http://smt.veryfast.filegear-sg.me;
}
@@ -275,7 +275,7 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://smt.1789.dpdns.org; # 替换为您的源站地址
proxy_pass http://smt.veryfast.filegear-sg.me; # 替换为您的源站地址
proxy_cache_valid 200 206 60s; # 缓存 .ts 文件 60 秒
expires 60s; # 设置浏览器端缓存 60 秒
@@ -306,7 +306,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 cdn6.16899.ggff.net; # 确保请求的 Host 匹配 Cloudflare 配置
proxy_set_header Host cdn6.veryfast.filegear-sg.me; # 确保请求的 Host 匹配 Cloudflare 配置
# SSL 配置
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # 指定 SSL 协议
@@ -333,7 +333,7 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://cdn6.16899.ggff.net;
proxy_pass http://cdn6.veryfast.filegear-sg.me;
}
@@ -348,7 +348,7 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://cdn6.16899.ggff.net; # 替换为您的源站地址
proxy_pass http://cdn6.veryfast.filegear-sg.me; # 替换为您的源站地址
proxy_cache_valid 200 206 60s; # 缓存 .ts 文件 60 秒
expires 60s; # 设置浏览器端缓存 60 秒
@@ -379,7 +379,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 v2h.1789.dpdns.org; # 确保请求的 Host 匹配 Cloudflare 配置
proxy_set_header Host v2h.veryfast.filegear-sg.me; # 确保请求的 Host 匹配 Cloudflare 配置
# SSL 配置
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # 指定 SSL 协议
@@ -406,7 +406,7 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://v2h.1789.dpdns.org;
proxy_pass http://v2h.veryfast.filegear-sg.me;
}
@@ -421,7 +421,7 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://v2h.1789.dpdns.org; # 替换为您的源站地址
proxy_pass http://v2h.veryfast.filegear-sg.me; # 替换为您的源站地址
proxy_cache_valid 200 206 60s; # 缓存 .ts 文件 60 秒
expires 60s; # 设置浏览器端缓存 60 秒
@@ -525,7 +525,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 cdn5.163189.xyz; # 确保请求的 Host 匹配 Cloudflare 配置
proxy_set_header Host cdn5.veryfast.filegear-sg.me; # 确保请求的 Host 匹配 Cloudflare 配置
# SSL 配置
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # 指定 SSL 协议
@@ -552,7 +552,7 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://cdn5.163189.xyz;
proxy_pass http://cdn5.veryfast.filegear-sg.me;
}
@@ -567,7 +567,7 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://cdn5.163189.xyz; # 替换为您的源站地址
proxy_pass http://cdn5.veryfast.filegear-sg.me; # 替换为您的源站地址
proxy_cache_valid 200 206 60s; # 缓存 .ts 文件 60 秒
expires 60s; # 设置浏览器端缓存 60 秒
@@ -598,7 +598,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 cdn2.16899.ggff.net; # 确保请求的 Host 匹配 Cloudflare 配置
proxy_set_header Host cdn2.veryfast.filegear-sg.me; # 确保请求的 Host 匹配 Cloudflare 配置
# SSL 配置
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # 指定 SSL 协议
@@ -625,7 +625,7 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://cdn2.16899.ggff.net;
proxy_pass http://cdn2.veryfast.filegear-sg.me;
}
@@ -640,7 +640,7 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://cdn2.16899.ggff.net; # 替换为您的源站地址
proxy_pass http://cdn2.veryfast.filegear-sg.me; # 替换为您的源站地址
proxy_cache_valid 200 206 60s; # 缓存 .ts 文件 60 秒
expires 60s; # 设置浏览器端缓存 60 秒
@@ -772,7 +772,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 cdn8.163189.xyz; # 确保请求的 Host 匹配 Cloudflare 配置
proxy_set_header Host cdn8.veryfast.filegear-sg.me; # 确保请求的 Host 匹配 Cloudflare 配置
# SSL 配置
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # 指定 SSL 协议
@@ -799,7 +799,7 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://cdn8.163189.xyz;
proxy_pass http://cdn8.veryfast.filegear-sg.me;
}
@@ -814,7 +814,7 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://cdn8.163189.xyz; # 替换为您的源站地址
proxy_pass http://cdn8.veryfast.filegear-sg.me; # 替换为您的源站地址
proxy_cache_valid 200 206 60s; # 缓存 .ts 文件 60 秒
expires 60s; # 设置浏览器端缓存 60 秒
@@ -871,8 +871,8 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://mytv.101.qzz.io;
proxy_set_header Host mytv.101.qzz.io; # 确保请求的 Host 匹配 Cloudflare 配置
proxy_pass http://mytv.veryfast.filegear-sg.me;
proxy_set_header Host mytv.veryfast.filegear-sg.me; # 确保请求的 Host 匹配 Cloudflare 配置
}
@@ -887,8 +887,8 @@ http {
return 302 $redirect_uri;
}
proxy_pass https://o12.1678520.xyz/;
proxy_set_header Host o12.1678520.xyz; # 确保请求的 Host 匹配 Cloudflare 配置
proxy_pass http://o12.veryfast.filegear-sg.me/;
proxy_set_header Host o12.veryfast.filegear-sg.me; # 确保请求的 Host 匹配 Cloudflare 配置
}
}
@@ -917,7 +917,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 cdn5.163189.xyz; # 确保请求的 Host 匹配 Cloudflare 配置
proxy_set_header Host cdn.veryfast.filegear-sg.me; # 确保请求的 Host 匹配 Cloudflare 配置
# SSL 配置
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # 指定 SSL 协议
@@ -943,7 +943,7 @@ http {
add_header Set-Cookie "token=$arg_token; Path=/";
}
proxy_pass https://cdn5.163189.xyz/mytv.m3u; # 替换为您的源站地址
proxy_pass http://cdn.veryfast.filegear-sg.me/mytv.m3u; # 替换为您的源站地址
sub_filter '服务器ip' '$host';
sub_filter '.m3u8' '.m3u8?token=$arg_token';
sub_filter 'smt3.2.1.php?' 'smt3.2.1.php?token=$arg_token&';