12 Custom sync server
ZHAO Xudong edited this page 2026-01-21 18:44:29 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Custom Sync Server

Language / 语言: English | 中文


English

In electerm sync panel, other than use github or gitee secret gist, could use a custom service to sync electerm 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 electerm 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:

中文

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

  • 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 electerm sync data as json, get user id from jwtData.id
  • method: POST, should return "ok", only when successfully get user id from jwtData.id

查看示例同步服务代码: