Sign inSign up

kevinwang15/convert-subscription-to-http-proxy

By kevinwang15

•Updated over 1 year ago

Image
0

436

kevinwang15/convert-subscription-to-http-proxy repository overview

⁠convert-subscription-to-http-proxy

(toy project, low code quality, do not use in production)

This project converts a subscription (supporting SS / SSR subscriptions) to a http proxy using Clash.

It could also

  • do ping tests to the servers in the subscription to skip the dead ones
  • do actual HTTP GET health checks through the proxy, and in case the proxy dies, it will try the next server in the subscription
docker run --restart=always -p 127.0.0.1:8959:7890 -p 127.0.0.1:8960:8080 -e SUB_URL="<give me an SS subscription URL here>" kevinwang15/convert-subscription-to-http-proxy:latest

export https_proxy=http://127.0.0.1:8959
curl https://ifconfig.info

If you would like to inform the proxy to switch to the next server, you can do

curl 127.0.0.1:8960/changeServer

Tag summary

Content type

Image

Digest

sha256:b9a7d66f3…

Size

142.4 MB

Last updated

over 1 year ago

docker pull kevinwang15/convert-subscription-to-http-proxy