Comments (17)
镜像站可能会对一些异常地址进行屏蔽,这很正常。有可能是内容异常,也有可能是有异常客户端高频请求。
不要再来问镜像站的事情了。这就是早期一直没有开贴搜集的部分原因,非我可控。
from gh-proxy.
镜像站可能会对一些异常地址进行屏蔽,这很正常。有可能是内容异常,也有可能是有异常客户端高频请求。
不要再来问镜像站的事情了。这就是早期一直没有开贴搜集的部分原因,非我可控。
我自己的站发现也下载不了这个文件,看了下日志是nginx报错
upstream sent too big header while reading response header from upstream
,由于镜像用了uwsgi,所以稍微改了一下配置并提了个pr。以下是测试地址:https://gh.noki.eu.org/https://github.com/Loyalsoldier/geoip/releases/latest/download/geoip-only-cn-private.dat
from gh-proxy.
镜像站可能会对一些异常地址进行屏蔽,这很正常。有可能是内容异常,也有可能是有异常客户端高频请求。
不要再来问镜像站的事情了。这就是早期一直没有开贴搜集的部分原因,非我可控。我自己的站发现也下载不了这个文件,看了下日志是nginx报错
upstream sent too big header while reading response header from upstream
,由于镜像用了uwsgi,所以稍微改了一下配置并提了个pr。以下是测试地址:https://gh.noki.eu.org/https://github.com/Loyalsoldier/geoip/releases/latest/download/geoip-only-cn-private.dat
我也测试了,uwsgi部署的都下载不了,用gunicorn部署能少很多问题,建议用gunicorn
from gh-proxy.
镜像站可能会对一些异常地址进行屏蔽,这很正常。有可能是内容异常,也有可能是有异常客户端高频请求。
不要再来问镜像站的事情了。这就是早期一直没有开贴搜集的部分原因,非我可控。我自己的站发现也下载不了这个文件,看了下日志是nginx报错
upstream sent too big header while reading response header from upstream
,由于镜像用了uwsgi,所以稍微改了一下配置并提了个pr。以下是测试地址:https://gh.noki.eu.org/https://github.com/Loyalsoldier/geoip/releases/latest/download/geoip-only-cn-private.dat我也测试了,uwsgi部署的都下载不了,用gunicorn部署能少很多问题,建议用gunicorn
更新下吧,设置下buffer已经可以了
from gh-proxy.
releases/latest/download
自动跳转逻辑貌似 github 这边变了。
打包昨天更新的镜像重新部署,貌似还是502错误
一些网友说之前用releases/latest/download一直没问题,就是最近几天出现的问题
from gh-proxy.
https://github.com/hacs/integration/releases/latest/download/hacs.zip
例如这个拉取最新版就报错502
指定tag就没问题
https://github.com/hacs/integration/releases/download/1.34.0/hacs.zip
from gh-proxy.
releases/latest/download 自动跳转逻辑貌似 github 这边变了。 打包昨天更新的镜像重新部署,貌似还是502错误
一些网友说之前用releases/latest/download一直没问题,就是最近几天出现的问题
如果说是报nginx 502那就更新一下,猜测是releases/latest/download的响应头发生了变化,超出了缓冲区的默认大小。我这边测试你发的链接都是可以下载的。
from gh-proxy.
用你的站点可以,但是mirror.ghproxy.com 还是不行,不过我的 dockerfile 的 From 不一样,我改回来试试看
from gh-proxy.
用你的站点可以,但是mirror.ghproxy.com 还是不行,不过我的 dockerfile 的 From 不一样,我改回来试试看
需要根据你的部署环境,如果是nginx+uwsgi,才设置uwsgi_buffer,如果是nginx+proxy 需要设置proxy_buffer,如果是nginx+php设置fastcgi_buffer
所以,worker版本没这个问题
from gh-proxy.
已解决,反代的配置没改。改了就好了
from gh-proxy.
用你的站点可以,但是mirror.ghproxy.com 还是不行,不过我的 dockerfile 的 From 不一样,我改回来试试看
需要根据你的部署环境,如果是nginx+uwsgi,才设置uwsgi_buffer,如果是nginx+proxy 需要设置proxy_buffer,如果是nginx+php设置fastcgi_buffer 所以,worker版本没这个问题
你好,我使用的nginx反代,clone提示The requested URL returned error: 502,请问要怎么修改配置?
location / {
proxy_pass http://127.0.0.1:1234/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
proxy_set_header Connection '';
}
``
from gh-proxy.
用你的站点可以,但是mirror.ghproxy.com 还是不行,不过我的 dockerfile 的 From 不一样,我改回来试试看
需要根据你的部署环境,如果是nginx+uwsgi,才设置uwsgi_buffer,如果是nginx+proxy 需要设置proxy_buffer,如果是nginx+php设置fastcgi_buffer 所以,worker版本没这个问题
你好,我使用的nginx反代,clone提示The requested URL returned error: 502,请问要怎么修改配置?
location / { proxy_pass http://127.0.0.1:1234/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Range $http_range; proxy_set_header If-Range $http_if_range; proxy_set_header Connection ''; } ``
https://github.com/hunshcn/gh-proxy/pull/118/files
看这里
from gh-proxy.
close with #118
from gh-proxy.
用你的站点可以,但是mirror.ghproxy.com 还是不行,不过我的 dockerfile 的 From 不一样,我改回来试试看
需要根据你的部署环境,如果是nginx+uwsgi,才设置uwsgi_buffer,如果是nginx+proxy 需要设置proxy_buffer,如果是nginx+php设置fastcgi_buffer 所以,worker版本没这个问题
你好,我使用的nginx反代,clone提示The requested URL returned error: 502,请问要怎么修改配置?
location / { proxy_pass http://127.0.0.1:1234/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Range $http_range; proxy_set_header If-Range $http_if_range; proxy_set_header Connection ''; } ``
可以用nginx反代吗?下面是gpt给的配置,还是提示502。
location / {
proxy_pass http://127.0.0.1:59740/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
proxy_set_header Connection '';
proxy_buffer_size 256k;
proxy_buffers 4 512k;
proxy_busy_buffers_size 512k;
proxy_temp_file_write_size 512k;
}
from gh-proxy.
我没看出来有问题, nginx -s reload
重新加载配置,如果还是不行可以看下 nginx log
from gh-proxy.
nginx -s reload
2024/03/10 23:38:12 [error] 58753#0: *19 upstream sent duplicate header line: "Transfer-Encoding: chunked", previous value: "Transfer-Encoding: chunked" while reading response header from upstream, client: , server: , request: "GET /https://github.com/6dylan6/jdpro.git/info/refs?service=git-upload-pack HTTP/2.0", upstream: "http://127.0.0.1:1234/https:/github.com/6dylan6/jdpro.git/info/refs?service=git-upload-pack", host: ""
from gh-proxy.
nginx -s reload
2024/03/10 23:38:12 [error] 58753#0: *19 upstream sent duplicate header line: "Transfer-Encoding: chunked", previous value: "Transfer-Encoding: chunked" while reading response header from upstream, client: 120.231.213.121, server: , request: "GET /https://github.com/6dylan6/jdpro.git/info/refs?service=git-upload-pack HTTP/2.0", upstream: "http://127.0.0.1:1234/https:/github.com/6dylan6/jdpro.git/info/refs?service=git-upload-pack", host: ""
这与上面讨论的内容不太一样,我明天看看吧
from gh-proxy.
Related Issues (20)
- 请问是否有计划支持ghcr.io吗? HOT 1
- 请求添加api.github.com的代理 HOT 1
- 对于 github.com 域名下的 raw 目录的文件访问会报 403 禁止访问的错误 HOT 1
- 甲骨文ARM机器安装报错 HOT 4
- docker部署后502 HOT 5
- 是不是不能用了? HOT 2
- 用户输入链接后自动拼接成下载地址并显示到页面上,方便复制 HOT 8
- ...
- githup加速
- 能否支持代理ipv6网站? HOT 24
- 【镜像站点搜集】 HOT 22
- 基于Golang的gh-proxy版本 HOT 4
- Python版本:分支文件路径中包含特殊字符下载返回404
- 部署后直接522? HOT 3
- 使用nginx反代,clone仓库提示502 HOT 1
- 无法加载Assets
- 二级域名也没了吗 HOT 3
- 二级域名mirror.ghproxy.com无法访问 HOT 1
- 通过 commit hash 获取的文件增大缓存时间
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gh-proxy.