Weserv —— 图片代理

图像缓存和调整大小服务。
使用全球缓存即时处理图像。


Docker-Compose

创建 docker-compose.yml 文件

1
nano docker-compose.yml
1
2
3
4
5
6
7
8
version: '3.3'
services:
weserv:
ports:
- '9999:80'
container_name: weserv
restart: always
image: 'ghcr.io/weserv/images:5.x'
1
docker-compose up -d

打开 9999 端口

1
ufw allow 9999/tcp

使用方法

https://weserv.rahn.top/?url= 加上代理的图片网址如下:

https://weserv.rahn.top/?url=https%3A%2F%2Fi3.ytimg.com%2Fvi%2FvX6e3mYwH7s%2Fhqdefault.jpg

https://weserv.rahn.top 为网站代理的域名


官方: https://wsrv.nl/

Github: https://github.com/weserv/images/tree/5.x/docker