Skip to content

Custom sync server

ZHAO Xudong edited this page Mar 6, 2026 · 1 revision

Custom Sync Server

Language / 语言: English | 中文


English

In spice-link sync panel, other than use github or gitee secret gist, could use a custom service to sync spice-link data:

  • API url: your-custom-web-service-url
  • jwt secret: your jwt secret to verify request and extract user id
  • user id: custom user id

Screen Shot 2023-07-14 at 09 07 09

  • method: PUT, should store request body json data, get user id from jwtData.id
  • method: GET, should return stored spice-link sync data as json, get user id from jwtData.id
  • method: POST, should return "ok", only when successfully get user id from jwtData.id

Check example sync service code:

中文

在 spice-link 同步面板中,除了使用 GitHub 或 Gitee 秘密 gist,还可以使用自定义服务来同步 spice-link 数据:

  • API url: your-custom-web-service-url
  • jwt secret: your jwt secret to verify request and extract user id
  • user id: custom user id

Screen Shot 2023-07-14 at 09 07 09

  • method: PUT, should store request body json data, get user id from jwtData.id
  • method: GET, should return stored spice-link sync data as json, get user id from jwtData.id
  • method: POST, should return "ok", only when successfully get user id from jwtData.id

查看示例同步服务代码:

Clone this wiki locally