dockerfiles/tinyproxy
Stille d8ba5c1e4b Create tinyproxy 2021-06-08 20:44:32 +08:00
..
Dockerfile Create tinyproxy 2021-06-08 20:44:32 +08:00
README.md Create tinyproxy 2021-06-08 20:44:32 +08:00
docker-compose.yml Create tinyproxy 2021-06-08 20:44:32 +08:00
tinyproxy.conf Create tinyproxy 2021-06-08 20:44:32 +08:00

README.md

tinyproxy for docker

GitHub stilleshan/dockerfile
Docker stilleshan/tinyproxy

docker image support for X86 and ARM

docker 启动

docker run -d --name tinyproxy --restart always -p 8888:8888 stilleshan/tinyproxy

docker compose 启动

下载 docker-compose.yml 执行以下命令启动:

docker-compose up -d

使用示例

curl -x https://IP:8888 https://ifconfig.co

BasicAuth

Tinyproxy 支持 BasicAuth 身份验证,需启动一次容器并执行以下命令将tinyproxy.conf拷贝至宿主机,并删除该容器.

docker cp tinyproxy:/etc/tinyproxy/tinyproxy.conf .

配置BasicAuth user password参数并将tinyproxy.conf挂载至/etc/tinyproxy/tinyproxy.conf后再次启动容器.

docker run -d --name tinyproxy --restart always -p 8888:8888 -v /path/tinyproxy.conf:/etc/tinyproxy/tinyproxy.conf stilleshan/tinyproxy

使用示例

curl -x https://user:password@IP:8888 https://ifconfig.co