Skip to content

Sub2API 0.2.18

Choose a tag to compare

@github-actions github-actions released this 14 Oct 08:00
· 705 commits to codex/my-feature since this release

AI API Gateway Platform - 将 AI 订阅配额分发和管理

恢复 Docker 部署的后台一键更新,并保证镜像标签、运行程序和后台版本一致。

  • 新增独立宿主更新服务,通过受限 Unix socket 接收管理员更新请求,不向应用暴露 Docker socket。
  • 自动核验正式发布、镜像来源和版本,备份数据库及 Compose,只重建应用容器。
  • 更新进度持久化,浏览器刷新与应用重启后恢复查询,成功后自动刷新页面。
  • 新版本校验失败时恢复旧镜像;数据库不会被自动覆盖,备份保留供人工恢复。
  • 保留裸二进制更新及未安装宿主服务时的手动 Docker 操作提示。

启用说明:宿主机运行 deploy/docker-updater/install.py 安装服务。旧容器首次需要按镜像升级到 0.2.18,之后可在后台点击在线更新。安装器使用运行容器的实际 Compose 配置及现有数据挂载。详情见 deploy/docker-updater/README.md。


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/ddaichicao/sub2api:0.2.18

One-line install (Linux):

curl -sSL https://raw.githubusercontent.com/DDAICHICAO/sub2api/v0.2.18/deploy/install.sh | sudo bash

Manual download:
Download the appropriate archive for your platform from the assets below.

📚 Documentation