Skip to content

Repository files navigation

English | 中文

Vercel Electerm sync server

A simple electerm data sync server for Vercel, written with nodejs/ts, data stored in [cloud.mongodb.com](free tier is enough).

Use

fork this project to your own account or org and deployed to Vercel.com, put proper env in project env setting:(get mongodb url from [cloud.mongodb.com)

electerm-vercel-env-setting

JWT_SECRET=some_secret_very_complicated
JWT_USERS=username1,username2,xxxx,hhhh
DB_URL=mongodb+srv://yourusername:xxxxx@cluster0.yyyyy.mongodb.net/electerm_sync_custom_db_name?retryWrites=true&w=majority

electerm-vercel-sync

  • Set https://your-vercel-domain.vercel.app/api/sync as your sync server url in electerm sync form.
  • Set JWT_SECRET as your sync JWT SECRET in electerm sync form.
  • Set one of JWT_USERS as your sync User ID in electerm sync form.

Dev

npm i
npm i vercel -g
cp sample.env .env

## local dev
vercel dev

## deploy
vercel deploy

Sync server in other languages

https://github.com/electerm/electerm/wiki/Custom-sync-server

About electerm

Open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client(Linux, Mac, Windows, Android, HarmonyOS).

Besides mainstream Windows/macOS/Linux/Android, electerm also supports HarmonyOS, and older systems — Ubuntu 18, Windows 7, macOS 10+, and special Chinese Linux distributions such as UOS, Kylin, and LoongArch (both old-world and new-world).

Homepage / Downloads · Theme · Docker · Online demo · Android · HarmonyOS · Huawei AppGallery · Microsoft Store · Snap Store · deb repo · rpm repo

🌐 electerm online — Public free online electerm app
🤖 electerm AI — Free AI for electerm users
💻 electerm-web — Web app version running in browser (including mobile device)

License

MIT

About

A simple electerm data sync server for Vercel, written with nodejs/ts, data stored in [cloud.mongodb.com](free tier is enough).

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages