自己魔改反代配置和相关内容即可

如果你对稳定性等有要求,还是推荐自己反代,哪怕用的Cloudflare

比较jsd原则上禁止图床【量少没啥事情】,Vercel的AGA已经废了,其他第三方加速也不怎么靠谱

#PROXY-START/BlueSkyXN
location ~* \.(php|jsp|cgi|asp|aspx)$
{
    proxy_pass https://raw.githubusercontent.com;
    proxy_set_header Host raw.githubusercontent.com;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header REMOTE-HOST $remote_addr;
}
location ~* /(BlueSkyXN|Skyimg|Sky-public-cloud1|Sky-public-cloud4)
{     valid_referers none blocked *.000714.xyz *.20000714.xyz *.baidu.com *.google.com *.githubusercontent.com *.github.com *.blueskyxn.com *.qq.com *.weixin.qq.com mp.weixin.qq.com 000714.xyz 20000714.xyz blueskyxn.xyz blueskyxn.com *.tencent.com;
       if ($invalid_referer){
       rewrite ^/ https://ae01.alicdn.com/kf/U0034b5bc30a04a36aaf69cb0babe7595y.jpg;
          #return 404;
       }
    proxy_pass https://raw.githubusercontent.com;
    proxy_set_header Host raw.githubusercontent.com;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header REMOTE-HOST $remote_addr;
    add_header X-Cache $upstream_cache_status;
    #Set Nginx Cache
    proxy_ignore_headers Set-Cookie Cache-Control expires;
    proxy_cache cache_one;
    proxy_cache_key $host$uri$is_args$args;
    proxy_cache_valid 101 200 1440m;
    proxy_cache_valid 304 301 302 1m;
    proxy_cache_valid 404 10s;
    expires 4h;
}
#PROXY-END/BlueSkyXN

点击数:53