Skip to content

xtfree/singbox-for-serv00

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

singbox-for-serv00

在 Serv00 或 CT8 机器上通过一键脚本安装和配置 sing-box(支持 socks5、vless+ws、hysteria2 节点),支持一键安装配置 nezha-agent。支持 Crontab 保持进程活跃,并借助 GitHub Actions 实现帐号续期与自动化管理,确保长期稳定运行。

  • socks5 节点可用于 cmliu/edgetunnel 项目,帮助 CF vless 节点解锁 ChatGPT 等服务。
  • vless+ws 节点可自行套用 CDN 实现代理加速(建议在 CDN 中加 TLS)。
  • hysteria2 节点主要用于抢占带宽来提升网速体验(如果网络可连通 )。

快速使用

一键脚本安装 sing-box 并自动配置 socks5、vless+ws、hysteria2 节点:

bash <(curl -s https://raw.githubusercontent.com/xtfree/singbox-for-serv00/main/singbox/singbox_install.sh)
#bash <(curl -s https://raw.githubusercontent.com/xtfree/singbox-for-serv00/refs/heads/main/singbox/singbox_install.sh)

说明:

  • 默认安装目录:$HOME/.sb
  • 脚本安装时根据交互提示,输入各种节点主要配置信息即可,安装脚本会默认自动启动 sing-box,并自动添加重启任务到 crontab 中。脚本安装好后会自动生成节点链接到 $HOME/.sb/links.txt 文件中。
  • 如需修改节点配置,只需修改 sing-box 配置文件($HOME/.sb/config.json)然后重启即可(重启 sing-box 命令:cd $HOME/.sb; ./stop.sh && ./start-nohup.sh),注意:手动修改配置文件重启,不会自动更新 links.txt 节点链接文件。

一键脚本卸载 sing-box 和相关配置:

bash <(curl -s https://raw.githubusercontent.com/xtfree/singbox-for-serv00/main/singbox/singbox_uninstall.sh)

一键脚本安装 nezha-agent 并自动配置:

bash <(curl -s https://raw.githubusercontent.com/xtfree/singbox-for-serv00/main/nezha/nezha_install.sh)
#bash <(curl -s https://raw.githubusercontent.com/xtfree/singbox-for-serv00/refs/heads/main/nezha/nezha_install.sh)

默认安装目录:$HOME/.nezha-agent

一键脚本卸载 nezha-agent 和相关配置:

bash <(curl -s https://raw.githubusercontent.com/xtfree/singbox-for-serv00/main/nezha/nezha_uninstall.sh)

Github Actions 保活

Settings >> Secrets and variables >> Actions >> Repository secrets >> New repository secret

  • Name(变量名):ACCOUNTS_JSON

  • Secret(秘钥内容)如下:

    [
      { "username": "xts001", "password": "7HEt(xeRxttdvgB^nCU6", "panel": "panel4.serv00.com", "ssh": "s4.serv00.com" },
      { "username": "xts002", "password": "4))@cRP%Ht8AryHlh^#", "panel": "panel7.serv00.com", "ssh": "s7.serv00.com" },
      { "username": "xts003", "password": "%Mg^dDMo6yIY$dZmxWNy", "panel": "panel.ct8.pl", "ssh": "s1.ct8.pl" }
    ]

    说明:请根据自己 Serv00 账号情况对 Secret 进行修改。以上秘钥内容是多个账号的情况,单个账号只需保留一个 json 对象即可

更详细操作参考:

参考

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages