轻量级 HTTP/HTTPS 代理软件 Tinyproxy docker 部署教程
source link: https://www.ioiox.com/archives/130.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
如果有一台境外 VPS 服务器,可以轻松使用 docker 部署一个轻量级的HTTP/HTTPS
代理服务,可方便用于类似 GitHub 等需要代理的服务或软件.
Tinyproxy 是一款轻量级 HTTP/HTTPS 代理软件,方便用于类似 GitHub 等需要代理的服务或软件.
docker 启动
根据需求修改映射端口
docker run -d --name tinyproxy --restart always -p 8888:8888 stilleshan/tinyproxy
docker compose 启动
也可以通过 docker-compose 来管理 docker 命令,方便修改端口等参数.
下载 docker-compose.yml 执行以下命令启动:
docker-compose up -d
curl -x https://IP:8888 cip.cc
BasicAuth 加密
Tinyproxy 现在也支持 BasicAuth 加密,设置账号和密码来使用.
先启动一次容器,将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 cip.cc
常用的代理除了 HTTP/HTTPS 以外,还有 SOCK5 代理,推荐一款功能更强大,轻量级,高性能的代理软件 goproxy ,期待本站更新相关教程.
本站提供免费和付费的技术支持.你可以通过留言,邮件,TG群的方式来技术交流和免费咨询.同时也可以付费支持的方式获得相关的技术支持,项目部署配置等服务.具体相关详情请点击查看 技术支持页面
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK