由于某些离谱的原因,clone github上面的项目时速度往往不到100k/s
所以,我整了个GitHub的镜像。。。
以clone https://github.com/torvalds/linux.git/ 为示例
把github.com替换成github.lurenjia.top即可
此外,也可以用宝塔反向代理GitHub
注意!!!禁止使用本服务访问国家法律法规禁止访问的内容!!!我们会积极配合相关部门取证!!!此外,不建议使用其登录GitHub,如需登录,请自行摸索
第一次部署hakua.xyz
第二次部署:lurenjia
服务器目前赞助:lurenjia
参考:宝塔面板配置文件|https://ghostcir.com/s/128.html
ps:这个镜像晚上速度极慢
反向代理示例配置文件(把域名替换一下就行啦):
upstream example { server example.com:443; keepalive 16;#设置连接池加快访问速度。 } server { listen 80; listen [::]:80; server_name example.com example.example.com ; if ($http_user_agent ~* "qihoobot|Baiduspider|Googlebot|Googlebot-Mobile|Googlebot-Image|Mediapartners-Google|Adsbot-Google|Feedfetcher-Google|Yahoo! Slurp|Yahoo! Slurp China|YoudaoBot|Sosospider|Sogou spider|Sogou web spider|MSNBot|ia_archiver|Tomato Bot") #防止搜索引擎收录 { return 403; } location / { proxy_set_header Accept-Encoding ""; #不使用压缩,如gzip proxy_set_header Connection ""; proxy_http_version 1.1; #使用http1.1长连接 proxy_connect_timeout 10s; #设置连接超时 proxy_read_timeout 10s; #设置读取超时 proxy_set_header Host example.com; proxy_hide_header Strict-Transport-Security; #隐藏协议头,避免因为反向代理开启hsts proxy_pass https://example; } location ~ \.well-known{ allow all; } }
表扬一下😂