yet another Flask File Proxy
If you can see the little badge here --> []. The proxy is ON.
Let's say you want to use the Docker Install Script:
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
But you have a "special network environment" that you may cannot connect to https://get.docker.com properly. Then you may wanna try this:
curl -fsSL https://ffp.yux.io/https://get.docker.com -o get-docker.sh
sh get-docker.sh
Then the script comes to you via ffp now. But there is another problem you must have noticed already that there are a lot of other outer resources from that script, such as https://github.com/docker......, http://ftp.debian.org/...... and they happen to be all unreachable to you. So let's rewrite all urls to the ffp address.
curl -fsSL https://ffp.yux.io/r/https://get.docker.com -o get-docker.sh
sh get-docker.sh
Since there is no SLA no guarantee for the domain ffp.yux.io to work constantly. I imagine this would take tremendous amount of bandwidth. So I recommend you to deploy ffp on your own server.
docker run -d --name=ffp \
-p 127.0.0.1:502:80 \
--restart=always \
yuxio/ffp:latest
Point your domain or subdomain to local 502 port. (reverse proxy)
Get the HTTPS work
File Proxy
https://get.docker.com to https://your.domain.here/https://get.docker.comRewritten Script Proxy please note /r/ in the url
https://get.docker.com to https://your.domain.here/r/https://get.docker.comhttps://your.domain.here/URL, which means you'd get all the resources passing through your proxy.docker run -d --name=ffp -p 80:80 yuxio/ffp:latest, then rewrite https://get.docker.com to http://$IP/https://get.docker.com, it should work just fine. But you can't use Rewritten Script Proxy.pip install -r requirements.txt && python main.py --host=0.0.0.0 --port=$PORT, choose the port you want. Rewrite https://get.docker.com to http://$IP:$PORT/https://get.docker.com. you need a proper python-3.7.6 environment使用Flask制作的文件代理
你要是能看见这有个小图标 --> [], 代理网站在线。
比如你想用 Docker Install Script:
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
但是由于可能存在的特殊网络环境,访问 https://get.docker.com并不通畅,试一下这个:
curl -fsSL https://ffp.yux.io/https://get.docker.com -o get-docker.sh
sh get-docker.sh
这样脚本就通过ffp访问。但是这就带来了另一个问题,脚本中有些外部资源,像 https://github.com/docker......, http://ftp.debian.org/...... 依然无法访问,这时就需要重写脚本中的外部链接,使所有外部资源都通过ffp。
curl -fsSL https://ffp.yux.io/r/https://get.docker.com -o get-docker.sh
sh get-docker.sh
不能保证ffp.yux.io一定能持续正常工作,建议使用docker自行部署。
docker run -d --name=ffp \
-p 127.0.0.1:502:80 \
--restart=always \
yuxio/ffp:latest
没有报错的话,此时ffp就部署成功了,监听本地的502端口。
将你的域名,或者子域名绑定到本地的502端口。
部署你的HTTPS。
文件代理
https://get.docker.com 改成 https://your.domain.here/https://get.docker.com重写外部链接 注意链接中的/r/
https://get.docker.com 重写为 https://your.domain.here/r/https://get.docker.comdocker run -d --name=ffp -p 80:80 yuxio/ffp:latest, 然后把你想要访问的链接,例如 https://get.docker.com 改成 http://$IP/https://get.docker.com, 这样就可以了,但是无法重写脚本中的外部链接。pip install -r requirements.txt && python main.py --host=0.0.0.0 --port=$PORT, 选择端口,一般使用80端口。 将 https://get.docker.com 重写为 http://$IP:$PORT/https://get.docker.com。Content type
Image
Digest
Size
144.5 MB
Last updated
over 5 years ago
docker pull yuxio/ffp