-
推荐
乌拉擦
-
2024-4-28 23:40:06
万能反代,测试没问题, 我常用的配置
location ^~ /
{
proxy_cache off; # 禁用代理缓存
proxy_set_header Sec-Fetch-Mode "navigate";
proxy_set_header Sec-Fetch-Site "cross-site";
proxy_set_header Cache-Control "max-age=0";
proxy_set_header Accept-Encoding "gzip,deflate";
gzip_disable ".";
expires -1; # 禁用页面缓存
proxy_pass https://www.69shu.pro; # 反代目标 URL
proxy_ssl_server_name on;
sub_filter_last_modified off; # 删除原始响应里的浏览器缓存值
sub_filter_once off; # 替换所有匹配内容
sub_filter_types *;
# 匹配任何 MIME 类型
}