GithubHelp home page GithubHelp logo

zhuixing05 / clash2sfa- Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xmdhs/clash2sfa

0.0 0.0 0.0 116 KB

将 Clash.Meta 格式的订阅链接转换为 sing-box 格式的链接,用于 SFA

Home Page: https://clash2sfa-xmdhs.koyeb.app

License: MIT License

Go 57.65% HTML 40.59% Dockerfile 1.76%

clash2sfa-'s Introduction

clash2sfa

用于将 Clash.Meta 格式的订阅链接转换为 sing-box 格式,可用于安卓版本的 SFA,ios 版本未测试。

部署

环境变量 port 控制程序运行所在的端口,若未设置默认开放在 8080 端口。

docker

docker volume create clash2sfa    
docker run -d -p 8080:8080 -v clash2sfa:/server/db ghcr.io/xmdhs/clash2sfa

使用

启动后使用浏览器访问 http://ip:port

SFA remote 中填入链接,可以通过 https://yacd.metacubex.one/ 切换节点和全局/分流模式等。

demo https://clash2sfa-xmdhs.koyeb.app/ (因为转换格式需要把订阅链接发送到服务器并保存在数据库中,且数据库会不定时删除,建议自己部署。不过若使用参数保存在链接中则不会储存到数据库中,也不会因为数据库删除导致配置信息丢失。)

配置文件模板

对配置文件模板中大多数修改都将被保留,在模板中的 outbounds 中增加节点也会被保留。

可转换的协议

https://github.com/xmdhs/clash2singbox#%E6%94%AF%E6%8C%81%E5%8D%8F%E8%AE%AE

命令行版本

https://github.com/xmdhs/clash2singbox

clash2sfa-'s People

Contributors

xmdhs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.