Spanish Total.js
English
Documentation For AI agents
Contents

Run in production

Start OpenSync in release mode and keep it safe on a public server.

.md GitHub
On this page

npm start runs OpenSync in debug mode. On a server, start it in release mode.

Start in release mode

node index.js 8000 --release

The start log then shows release as the Mode. Keep OpenSync running with the process manager you use for your other Node.js apps, or run the Docker image.

Keep it safe

  • Save the first setup at once. Until the first setup is saved, anyone who opens the address can set the setup token. See First setup.
  • Use HTTPS. Tokens travel in the address. Put OpenSync behind a web server with HTTPS, and let clients connect with wss:// and https://.
  • Decide who can send. /sync/{channel}/ takes requests without a token, so anyone who can reach it can send messages to your clients. Let only your apps and the services you trust reach it, for example with a firewall or rules in your web server.
  • Give each app its own token, limited to the channels it needs. See Access tokens and Limit a token to channels.
  • Lock the setup interface when you do not need it: Disconnect the setup interface.
  • Back up the data folder. See The data folder.
Made in Europe