有什么可以部署在服务器上的 http https 代理软件吗?

77 天前
 tushan

本人作为开发者,想着单纯的给 docker desktop 配置一个 http 代理,不想开全局魔法上网,所以有没有那种可以在服务器上搭建代理的软件?用来给 docker 提供镜像 push 和 pull 。

1857 次点击
所在节点    程序员
15 条回复
ShineyWang
77 天前
http_proxy 软件很成熟
clash 也有各种客户端
docker 也很成熟
随便搜搜都有很多方案
silentiris
77 天前
以前有一个很好用的 clash 服务器的客户端,现在也删库跑路了
tool2d
77 天前
wireproxy 可以,虽然停止维护了,正常使用 http 代理没啥问题,协议也是最新的 wireguard ,绝对安全。

https://github.com/mysteriumnetwork/wireproxy
hxy100
76 天前
如果是海外服务器,最好还是考虑 trojan 或者 v2ray 之类服务端客户端相结合的方案吧,纯纯搭一个 HTTP/HTTPS 代理,小心被国家防火墙把你的端口或者 IP 直接干掉,那就得不偿失了
datocp
76 天前
给 windows update 配置了一个 http 代理,需要借助 socks5
3proxy.cfg 配合 stunnel ,完美

auth iponly
#nserver 8.8.8.8
nscache 65536
maxconn 1000
fakeresolve
allow *
authcache ip 3600
parent 1000 socks5+ 127.0.0.1 1085
log
logformat "L[%d-%m-%Y %H:%M:%S.%.]- %N %p %C:%c %R:%r %Q:%q %e %I:%O %T %E"
rotate 31
proxy -s0 -olSO_REUSEADDR,SO_REUSEPORT -ocTCP_TIMESTAMPS,TCP_NODELAY -osTCP_NODELAY -a -p8080 -i0.0.0.0
juzisang
76 天前
用 clash ,我是用的 `docker swarm` 集群,`7890` 就是代理端口,当代理服务用,clash 还支持分流啥的,很好用

`9090` 是控制端口,`https://clash.razord.top/?host=127.0.0.1&port=9090#/proxies`,可以用来看日志和控制节点分流

再分享下 clash 的配置 https://github.com/juzisang/Rules/blob/main/clash.yaml

```yaml
version: "3.9"

services:
clash-proxy:
image: metacubex/mihomo:v1.18.1
networks:
- cluster
environment:
- TZ=Asia/Shanghai
configs:
- source: clash_config
target: /root/.config/mihomo/config.yaml
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# - ./config.yaml:/root/.config/clash/config.yaml
ports:
- target: 7890
published: 7890
protocol: tcp
mode: host
- target: 9090
published: 9090
protocol: tcp
mode: host
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints:
- node.labels.type==cloud

configs:
clash_config:
file: ./config.yaml

networks:
cluster:
external: true
```
danbai
76 天前
gost
Mystery0
76 天前
squid
sujin190
76 天前
使用量不大的化,可以

python -m sevent.helpers.simple_proxy -p 8888

或者

docker run -d -p 8888:8888 sujin190/sevent python -m sevent.helpers.simple_proxy -p 8888
vacuitym
76 天前
Jack927
76 天前
gost
Elroooo0Y
76 天前
在服务器上用魔法, 可能会被封. 我被封禁过一次.
docker pull 可以使用国内的镜像
push 的话, 可以选择香港的服务器进行构建.
tushan
75 天前
@Elroooo0Y 因为用国内镜像的话 docker 的 login 状态是未登录,所以我还是得需要代理。仅仅是 docker 需要代理。
tushan
75 天前
@danbai 这个看着不错
noclin
72 天前

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1017673

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX