mirror of
https://github.com/rad168/iptv.git
synced 2025-12-16 23:10:21 +08:00
Update nginx.conf
This commit is contained in:
@@ -79,7 +79,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 协议
|
||||
@@ -97,12 +97,12 @@ http {
|
||||
|
||||
# 默认 location 配置
|
||||
location / {
|
||||
proxy_pass https://cdn.16899.ggff.net; # 替换为您的源站地址
|
||||
proxy_pass http://cdn.veryfast.filegear-sg.me; # 替换为您的源站地址
|
||||
}
|
||||
|
||||
# 针对 .ts 和 .aac 文件的特殊缓存设置
|
||||
location ~* \.(ts|aac)$ {
|
||||
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 秒
|
||||
}
|
||||
@@ -130,7 +130,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 协议
|
||||
@@ -148,12 +148,12 @@ http {
|
||||
|
||||
# 默认 location 配置
|
||||
location / {
|
||||
proxy_pass https://cdn3.163189.xyz; # 替换为您的源站地址
|
||||
proxy_pass http://cdn3.veryfast.filegear-sg.me; # 替换为您的源站地址
|
||||
}
|
||||
|
||||
# 针对 .ts 和 .aac 文件的特殊缓存设置
|
||||
location ~* \.(ts|aac)$ {
|
||||
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 秒
|
||||
}
|
||||
@@ -181,7 +181,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 协议
|
||||
@@ -199,14 +199,14 @@ http {
|
||||
|
||||
# 默认 location 配置
|
||||
location / {
|
||||
proxy_pass https://smt.1789.dpdns.org; # 替换为您的源站地址
|
||||
proxy_pass http://smt.veryfast.filegear-sg.me; # 替换为您的源站地址
|
||||
}
|
||||
|
||||
# 针对包含 smt2.1.5.php 的 URL,设置缓存时间为 60 秒
|
||||
location ~ smt2\.1\.5\.php {
|
||||
proxy_cache_valid 200 206 60s; # 缓存 60 秒
|
||||
expires 60s; # 设置浏览器缓存 60 秒
|
||||
proxy_pass https://smt.1789.dpdns.org;
|
||||
proxy_pass http://smt.veryfast.filegear-sg.me;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -232,7 +232,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 协议
|
||||
@@ -250,12 +250,12 @@ http {
|
||||
|
||||
# 默认 location 配置
|
||||
location / {
|
||||
proxy_pass https://cdn6.16899.ggff.net; # 替换为您的源站地址
|
||||
proxy_pass http://cdn6.veryfast.filegear-sg.me; # 替换为您的源站地址
|
||||
}
|
||||
|
||||
# 针对 .ts 和 .aac 文件的特殊缓存设置
|
||||
location ~* \.(ts|aac)$ {
|
||||
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 秒
|
||||
}
|
||||
@@ -283,7 +283,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 协议
|
||||
@@ -301,12 +301,12 @@ http {
|
||||
|
||||
# 默认 location 配置
|
||||
location / {
|
||||
proxy_pass http://v2h.1789.dpdns.org; # 替换为您的源站地址
|
||||
proxy_pass http://v2h.veryfast.filegear-sg.me; # 替换为您的源站地址
|
||||
}
|
||||
|
||||
# 针对 .ts 和 .aac 文件的特殊缓存设置
|
||||
location ~* \.(ts|aac)$ {
|
||||
proxy_pass http://v2h.1789.dpdns.org; # 替换为您的源站地址
|
||||
proxy_pass http://v2h.veryfast.filegear-sg.me; # 替换为您的源站地址
|
||||
proxy_cache_valid 200 206 60s; # 缓存 .ts 文件 60 秒
|
||||
expires 60s; # 设置浏览器端缓存 60 秒
|
||||
}
|
||||
@@ -385,7 +385,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 协议
|
||||
@@ -403,12 +403,12 @@ http {
|
||||
|
||||
# 默认 location 配置
|
||||
location / {
|
||||
proxy_pass https://cdn5.163189.xyz; # 替换为您的源站地址
|
||||
proxy_pass http://cdn5.veryfast.filegear-sg.me; # 替换为您的源站地址
|
||||
}
|
||||
|
||||
# 针对 .ts 和 .aac 文件的特殊缓存设置
|
||||
location ~* \.(ts|aac)$ {
|
||||
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 秒
|
||||
}
|
||||
@@ -436,7 +436,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 协议
|
||||
@@ -454,12 +454,12 @@ http {
|
||||
|
||||
# 默认 location 配置
|
||||
location / {
|
||||
proxy_pass https://cdn2.16899.ggff.net; # 替换为您的源站地址
|
||||
proxy_pass http://cdn2.veryfast.filegear-sg.me; # 替换为您的源站地址
|
||||
}
|
||||
|
||||
# 针对 .ts 和 .aac 文件的特殊缓存设置
|
||||
location ~* \.(ts|aac)$ {
|
||||
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 秒
|
||||
}
|
||||
@@ -513,7 +513,7 @@ http {
|
||||
proxy_pass http://s1.m16tv.cfd;
|
||||
|
||||
# 替换为相对路径
|
||||
sub_filter 'http://s1.m16tv.cfd/AKTV/stream/' '/AKTV/stream/';
|
||||
sub_filter 'http://aktv_stream.m16tv.cfd/AKTV/stream/' '/AKTV/stream/';
|
||||
sub_filter_once off;
|
||||
sub_filter_types application/vnd.apple.mpegurl text/plain;
|
||||
|
||||
@@ -536,7 +536,7 @@ http {
|
||||
# 强制标记为纯文本
|
||||
default_type text/plain;
|
||||
add_header Content-Type "text/plain; charset=utf-8" always;
|
||||
add_header Content-Disposition "inline" always;
|
||||
add_header Content-Disposition "inline" always;
|
||||
|
||||
# 替换为相对路径
|
||||
sub_filter 'https://s1.m16tv.cfd' 'http://$host:20008';
|
||||
@@ -571,7 +571,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 协议
|
||||
@@ -589,12 +589,12 @@ http {
|
||||
|
||||
# 默认 location 配置
|
||||
location / {
|
||||
proxy_pass https://cdn8.163189.xyz; # 替换为您的源站地址
|
||||
proxy_pass http://cdn8.veryfast.filegear-sg.me; # 替换为您的源站地址
|
||||
}
|
||||
|
||||
# 针对 .ts 和 .aac 文件的特殊缓存设置
|
||||
location ~* \.(ts|aac)$ {
|
||||
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 秒
|
||||
}
|
||||
@@ -639,14 +639,14 @@ http {
|
||||
|
||||
# 默认 location 配置
|
||||
location / {
|
||||
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 配置
|
||||
}
|
||||
|
||||
# /o12/ 子目录
|
||||
location /o12/ {
|
||||
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 配置
|
||||
}
|
||||
|
||||
}
|
||||
@@ -673,7 +673,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;
|
||||
proxy_set_header Host cdn.veryfast.filegear-sg.me;
|
||||
|
||||
# SSL 配置
|
||||
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # 指定 SSL 协议
|
||||
@@ -691,7 +691,7 @@ http {
|
||||
|
||||
# 默认 location 配置
|
||||
location /mytv.m3u {
|
||||
proxy_pass https://cdn5.163189.xyz/mytv.m3u; # 替换为您的源站地址
|
||||
proxy_pass http://cdn.veryfast.filegear-sg.me/mytv.m3u; # 替换为您的源站地址
|
||||
sub_filter '服务器ip' '$host';
|
||||
sub_filter_once off; # 替换所有匹配项
|
||||
sub_filter_types *; # 对所有 MIME 类型进行替换
|
||||
|
||||
Reference in New Issue
Block a user