-
Hi everyone I found this discussion about setting up multiple servers: https://github.com/orgs/TriliumNext/discussions/8 The question is if it's possible to run multiple instances of the Desktop app and have each sync with the different server instances? |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 6 replies
-
Hi @hugener! I'm Dosu and I’m helping the Notes team. Yes, you can run multiple instances of the TriliumNext desktop app, each syncing with a different server. To do this, launch each instance with its own data directory and port by setting the TRILIUM_DATA_DIR and TRILIUM_PORT environment variables. For example:
Each instance will have its own configuration and can be set up to sync with a different server via the sync settings in the app. This approach is supported and documented in the official user guide, which also notes that syncing is only supported via a sync/web server, and each instance must use a separate data directory and port (User Guide, Data Directory). There are no technical limitations in the codebase preventing this setup, as long as each instance uses its own data directory and port. Just note that Trilium does not support multiple users per server instance, and each desktop instance can only sync with one server at a time (Multiple Server Instances). To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Hi @hugener! I'm Dosu and I’m helping the Notes team.
Yes, you can run multiple instances of the TriliumNext desktop app, each syncing with a different server. To do this, launch each instance with its own data directory and port by setting the TRILIUM_DATA_DIR and TRILIUM_PORT environment variables. For example:
Each instance will have its own configuration and can be set up to sync with a different server via the sync settings in the app. This approach is supported and documented in the official user guide, which also notes that syncing is only supported via a sync/web…