A simple electerm data sync server for Vercel, written with nodejs/ts, data stored in [cloud.mongodb.com](free tier is enough).
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)
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- Set
https://your-vercel-domain.vercel.app/api/syncas your sync server url in electerm sync form. - Set
JWT_SECRETas your sync JWT SECRET in electerm sync form. - Set one of
JWT_USERSas your sync User ID in electerm sync form.
npm i
npm i vercel -g
cp sample.env .env
## local dev
vercel dev
## deploy
vercel deployhttps://github.com/electerm/electerm/wiki/Custom-sync-server
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
MIT

