Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(docs): document multiple server instances & reorganize
Elian Doran0acdab29afc5
diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.jsonindex 154cbaa17d..3c7edbbd6e 100644--- a/docs/User Guide/!!!meta.json+++ b/docs/User Guide/!!!meta.json@@ -236,7 +236,7 @@"Dgg7bR3b6K9j","3tW6mORuTHnB"],- "title": "Packaged server installation",+ "title": "Packaged version for Linux","notePosition": 10,"prefix": null,"isExpanded": false,@@ -263,10 +263,17 @@"value": "packaged-server-installation","isInheritable": false,"position": 20+ },+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bxl-tux",+ "isInheritable": false,+ "position": 30}],"format": "markdown",- "dataFileName": "Packaged server installation.md",+ "dataFileName": "Packaged version for Linux.md","attachments": []},{@@ -279,7 +286,7 @@"Dgg7bR3b6K9j","rWX5eY045zbE"],- "title": "Docker Server Installation",+ "title": "Using Docker","notePosition": 20,"prefix": null,"isExpanded": false,@@ -306,10 +313,17 @@"value": "docker-server-installation","isInheritable": false,"position": 30+ },+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bxl-docker",+ "isInheritable": false,+ "position": 40}],"format": "markdown",- "dataFileName": "Docker Server Installation.md",+ "dataFileName": "Using Docker.md","attachments": []},{@@ -322,7 +336,7 @@"Dgg7bR3b6K9j","moVgBcoxE3EK"],- "title": "NixOS server installation",+ "title": "On NixOS","notePosition": 30,"prefix": null,"isExpanded": false,@@ -335,10 +349,17 @@"value": "nixos-server-installation","isInheritable": false,"position": 10+ },+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bxl-tux",+ "isInheritable": false,+ "position": 20}],"format": "markdown",- "dataFileName": "NixOS server installation.md",+ "dataFileName": "On NixOS.md","attachments": []},{@@ -351,7 +372,7 @@"Dgg7bR3b6K9j","J1Bb6lVlwU5T"],- "title": "Manual server installation",+ "title": "Manually","notePosition": 40,"prefix": null,"isExpanded": false,@@ -371,10 +392,31 @@"value": "manual-server-installation","isInheritable": false,"position": 20+ },+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bx-code-alt",+ "isInheritable": false,+ "position": 30+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "rWX5eY045zbE",+ "isInheritable": false,+ "position": 40+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "3tW6mORuTHnB",+ "isInheritable": false,+ "position": 50}],"format": "markdown",- "dataFileName": "Manual server installation.md",+ "dataFileName": "Manually.md","attachments": []},{@@ -387,7 +429,7 @@"Dgg7bR3b6K9j","DCmT6e7clMoP"],- "title": "Kubernetes server installation",+ "title": "Using Kubernetes","notePosition": 50,"prefix": null,"isExpanded": false,@@ -400,10 +442,81 @@"value": "kubernetes-server-installation","isInheritable": false,"position": 10+ },+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bxl-kubernetes",+ "isInheritable": false,+ "position": 20+ }+ ],+ "format": "markdown",+ "dataFileName": "Using Kubernetes.md",+ "attachments": []+ },+ {+ "isClone": false,+ "noteId": "klCWNks3ReaQ",+ "notePath": [+ "pOsGYCXsbNQG",+ "Otzi9La2YAUX",+ "WOcw2SLH6tbX",+ "Dgg7bR3b6K9j",+ "klCWNks3ReaQ"+ ],+ "title": "Multiple server instances",+ "notePosition": 60,+ "prefix": null,+ "isExpanded": false,+ "type": "text",+ "mime": "text/html",+ "attributes": [+ {+ "type": "relation",+ "name": "internalLink",+ "value": "cbkrhQjrkKrh",+ "isInheritable": false,+ "position": 10+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "3tW6mORuTHnB",+ "isInheritable": false,+ "position": 20+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "rWX5eY045zbE",+ "isInheritable": false,+ "position": 30+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "moVgBcoxE3EK",+ "isInheritable": false,+ "position": 40+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "J1Bb6lVlwU5T",+ "isInheritable": false,+ "position": 50+ },+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bxs-user-account",+ "isInheritable": false,+ "position": 60}],"format": "markdown",- "dataFileName": "Kubernetes server installation.md",+ "dataFileName": "Multiple server instances.md","attachments": []}]diff --git a/docs/User Guide/User Guide/Installation & Setup/Server Installation.md b/docs/User Guide/User Guide/Installation & Setup/Server Installation.mdindex 566517656b..7559bbe186 100644--- a/docs/User Guide/User Guide/Installation & Setup/Server Installation.md+++ b/docs/User Guide/User Guide/Installation & Setup/Server Installation.md@@ -5,14 +5,14 @@ This guide outlines the steps to install Trilium on your own server. You might cThere are several ways to install Trilium on a server, each with its own advantages:-* **Recommended**: [Docker Installation](Server%20Installation/1.%20Installing%20the%20server/Docker%20Server%20Installation.md) - Available for **AMD64** and **ARM** architectures.-* [Packaged Server Installation](Server%20Installation/1.%20Installing%20the%20server/Packaged%20server%20installation.md)+* **Recommended**: [Docker Installation](Server%20Installation/1.%20Installing%20the%20server/Using%20Docker.md) - Available for **AMD64** and **ARM** architectures.+* [Packaged Server Installation](Server%20Installation/1.%20Installing%20the%20server/Packaged%20version%20for%20Linux.md)* [PikaPods managed hosting](https://www.pikapods.com/pods?run=trilium-next)-* [Manual Installation](Server%20Installation/1.%20Installing%20the%20server/Manual%20server%20installation.md)-* [Kubernetes](Server%20Installation/1.%20Installing%20the%20server/Kubernetes%20server%20installation.md)+* [Manual Installation](Server%20Installation/1.%20Installing%20the%20server/Manually.md)+* [Kubernetes](Server%20Installation/1.%20Installing%20the%20server/Using%20Kubernetes.md)* [Cloudron](https://www.cloudron.io/store/com.github.trilium.cloudronapp.html)* [HomelabOS](https://homelabos.com/docs/software/trilium/)-* [NixOS Module](Server%20Installation/1.%20Installing%20the%20server/NixOS%20server%20installation.md)+* [NixOS Module](Server%20Installation/1.%20Installing%20the%20server/On%20NixOS.md)The server installation includes both web and [mobile frontends](Mobile%20Frontend.md).diff --git a/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Manual server installation.md b/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Manually.mdsimilarity index 77%rename from docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Manual server installation.mdrename to docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Manually.mdindex e08e73a1d4..1ba3a1d6ac 100644--- a/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Manual server installation.md+++ b/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Manually.md@@ -1,5 +1,6 @@-# Manual server installation-This page describes manually installing Trilium on your server. **Note that this is a not well supported way to install Trilium, problems may appear, information laid out here is quite out of date. It is recommended to use either Docker or packaged build installation.**+# Manually+> [!WARNING]+> This page describes manually installing Trilium on your server. **Note that this is a not well supported way to install Trilium, problems may appear, information laid out here is quite out of date. It is recommended to use either** <a class="reference-link" href="Using%20Docker.md">Docker Server Installation</a> **or** <a class="reference-link" href="Packaged%20version%20for%20Linux.md">Packaged server installation</a>**.**## Requirementsdiff --git a/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Multiple server instances.md b/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Multiple server instances.mdnew file mode 100644index 0000000000..273856be56--- /dev/null+++ b/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Multiple server instances.md@@ -0,0 +1,22 @@+# Multiple server instances+Trilium does not support multiple users. In order to have two or more persons with their own set of notes, multiple server instances must be set up. It is also not possible to use multiple [sync](../../Synchronization.md) servers.++To allow multiple server instances on a single physical server:++* For <a class="reference-link" href="Packaged%20version%20for%20Linux.md">Packaged version for Linux</a> or <a class="reference-link" href="Manually.md">Manually</a>, if starting the server manually just specify a different port and data directory per instance:++ ```+ TRILIUM_NETWORK_PORT=8080 TRILIUM_DATA_DIR=/path/to/your/data-dir-A /opt/trilium/trilium.sh+ ```++ For a second instance:++ ```+ TRILIUM_NETWORK_PORT=8081 TRILIUM_DATA_DIR=/path/to/your/data-dir-B /opt/trilium/trilium.sh+ ```++ If using `systemd`, then set the [environment variables in the service configuration](https://serverfault.com/questions/413397/how-to-set-environment-variable-in-systemd-service).+* For <a class="reference-link" href="Using%20Docker.md">Using Docker</a>, simply use two different containers, each with their own port binding and data directory.+* For <a class="reference-link" href="On%20NixOS.md">On NixOS</a>, the only possible way is to use Docker OCI containers or at least one NixOS container with its own service definition.++For support or additional context, see the related [GitHub Discussion](https://github.com/orgs/TriliumNext/discussions/1642#discussioncomment-12768808).\ No newline at end of filediff --git a/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/NixOS server installation.md b/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/On NixOS.mdsimilarity index 94%rename from docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/NixOS server installation.mdrename to docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/On NixOS.mdindex e6d7398517..5516e419b4 100644--- a/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/NixOS server installation.md+++ b/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/On NixOS.md@@ -1,4 +1,4 @@-# NixOS server installation+# On NixOSThis page describes configuring the Trilium module included in NixOS.## Requirementsdiff --git a/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Packaged server installation.md b/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Packaged version for Linux.mdsimilarity index 97%rename from docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Packaged server installation.mdrename to docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Packaged version for Linux.mdindex c0842534eb..67f90eb905 100644--- a/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Packaged server installation.md+++ b/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Packaged version for Linux.md@@ -1,4 +1,4 @@-# Packaged server installation+# Packaged version for LinuxThis is essentially Trilium sources + node modules + node.js runtime packaged into one 7z file.## Stepsdiff --git a/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Docker Server Installation.md b/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Using Docker.mdsimilarity index 96%rename from docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Docker Server Installation.mdrename to docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Using Docker.mdindex 53d0d9dd2a..593cd7c844 100644--- a/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Docker Server Installation.md+++ b/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Using Docker.md@@ -1,4 +1,4 @@-# Docker Server Installation+# Using DockerOfficial docker images are published on docker hub for **AMD64**, **ARMv7** and **ARM64/v8**: [https://hub.docker.com/r/triliumnext/notes/](https://hub.docker.com/r/triliumnext/notes/)## Prerequisites@@ -50,7 +50,7 @@ Trilium requires a directory on the host system to store its data. This director#### Local Access Only-Run the container to make it accessible only from the localhost. This setup is suitable for testing or when using a proxy server like Nginx or Apache.+Run the container to make it accessible only from the localhost. This setup is suitable for testing or when using a prox ay server like Nginx or Apache.```sudo docker run -t -i -p 127.0.0.1:8080:8080 -v ~/trilium-data:/home/node/trilium-data triliumnext/notes:[VERSION]diff --git a/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Kubernetes server installation.md b/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Using Kubernetes.mdsimilarity index 97%rename from docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Kubernetes server installation.mdrename to docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Using Kubernetes.mdindex 8444cc185c..c6ee42d19e 100644--- a/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Kubernetes server installation.md+++ b/docs/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Using Kubernetes.md@@ -1,4 +1,4 @@-# Kubernetes server installation+# Using KubernetesAs Trilium can be run in Docker it also can be deployed in Kubernetes. You can either use our Helm chart, a community Helm chart, or roll your own Kubernetes deployment.The recommended way is to use a Helm chart.diff --git a/docs/User Guide/User Guide/Installation & Setup/Upgrading TriliumNext.md b/docs/User Guide/User Guide/Installation & Setup/Upgrading TriliumNext.mdindex 32509cd7cf..0894837095 100644--- a/docs/User Guide/User Guide/Installation & Setup/Upgrading TriliumNext.md+++ b/docs/User Guide/User Guide/Installation & Setup/Upgrading TriliumNext.md@@ -5,7 +5,7 @@ This document outlines the steps required to upgrade Trilium to a new release veTrilium does not support built-in automatic upgrades; all updates must be performed manually. The upgrade process varies depending on the installation method:-* [**Docker Server Installation**](Server%20Installation/1.%20Installing%20the%20server/Docker%20Server%20Installation.md): Pull the new image and restart the container.+* [**Docker Server Installation**](Server%20Installation/1.%20Installing%20the%20server/Using%20Docker.md): Pull the new image and restart the container.* **Other Installations**: Download the latest version from the [release page](https://github.com/TriliumNext/Notes/releases/latest) and replace the existing application files.## Database Compatibility and Migrationdiff --git a/src/public/app/doc_notes/en/User Guide/!!!meta.json b/src/public/app/doc_notes/en/User Guide/!!!meta.jsonindex bb7c409443..fcdd6840fc 100644--- a/src/public/app/doc_notes/en/User Guide/!!!meta.json+++ b/src/public/app/doc_notes/en/User Guide/!!!meta.json@@ -236,7 +236,7 @@"Dgg7bR3b6K9j","3tW6mORuTHnB"],- "title": "Packaged server installation",+ "title": "Packaged version for Linux","notePosition": 10,"prefix": null,"isExpanded": false,@@ -263,10 +263,17 @@"value": "packaged-server-installation","isInheritable": false,"position": 20+ },+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bxl-tux",+ "isInheritable": false,+ "position": 30}],"format": "html",- "dataFileName": "Packaged server installation.html",+ "dataFileName": "Packaged version for Linux.html","attachments": []},{@@ -279,7 +286,7 @@"Dgg7bR3b6K9j","rWX5eY045zbE"],- "title": "Docker Server Installation",+ "title": "Using Docker","notePosition": 20,"prefix": null,"isExpanded": false,@@ -306,10 +313,17 @@"value": "docker-server-installation","isInheritable": false,"position": 30+ },+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bxl-docker",+ "isInheritable": false,+ "position": 40}],"format": "html",- "dataFileName": "Docker Server Installation.html",+ "dataFileName": "Using Docker.html","attachments": []},{@@ -322,7 +336,7 @@"Dgg7bR3b6K9j","moVgBcoxE3EK"],- "title": "NixOS server installation",+ "title": "On NixOS","notePosition": 30,"prefix": null,"isExpanded": false,@@ -335,10 +349,17 @@"value": "nixos-server-installation","isInheritable": false,"position": 10+ },+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bxl-tux",+ "isInheritable": false,+ "position": 20}],"format": "html",- "dataFileName": "NixOS server installation.html",+ "dataFileName": "On NixOS.html","attachments": []},{@@ -351,7 +372,7 @@"Dgg7bR3b6K9j","J1Bb6lVlwU5T"],- "title": "Manual server installation",+ "title": "Manually","notePosition": 40,"prefix": null,"isExpanded": false,@@ -371,10 +392,31 @@"value": "manual-server-installation","isInheritable": false,"position": 20+ },+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bx-code-alt",+ "isInheritable": false,+ "position": 30+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "rWX5eY045zbE",+ "isInheritable": false,+ "position": 40+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "3tW6mORuTHnB",+ "isInheritable": false,+ "position": 50}],"format": "html",- "dataFileName": "Manual server installation.html",+ "dataFileName": "Manually.html","attachments": []},{@@ -387,7 +429,7 @@"Dgg7bR3b6K9j","DCmT6e7clMoP"],- "title": "Kubernetes server installation",+ "title": "Using Kubernetes","notePosition": 50,"prefix": null,"isExpanded": false,@@ -400,10 +442,81 @@"value": "kubernetes-server-installation","isInheritable": false,"position": 10+ },+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bxl-kubernetes",+ "isInheritable": false,+ "position": 20+ }+ ],+ "format": "html",+ "dataFileName": "Using Kubernetes.html",+ "attachments": []+ },+ {+ "isClone": false,+ "noteId": "klCWNks3ReaQ",+ "notePath": [+ "pOsGYCXsbNQG",+ "Otzi9La2YAUX",+ "WOcw2SLH6tbX",+ "Dgg7bR3b6K9j",+ "klCWNks3ReaQ"+ ],+ "title": "Multiple server instances",+ "notePosition": 60,+ "prefix": null,+ "isExpanded": false,+ "type": "text",+ "mime": "text/html",+ "attributes": [+ {+ "type": "relation",+ "name": "internalLink",+ "value": "cbkrhQjrkKrh",+ "isInheritable": false,+ "position": 10+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "3tW6mORuTHnB",+ "isInheritable": false,+ "position": 20+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "rWX5eY045zbE",+ "isInheritable": false,+ "position": 30+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "moVgBcoxE3EK",+ "isInheritable": false,+ "position": 40+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "J1Bb6lVlwU5T",+ "isInheritable": false,+ "position": 50+ },+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bxs-user-account",+ "isInheritable": false,+ "position": 60}],"format": "html",- "dataFileName": "Kubernetes server installation.html",+ "dataFileName": "Multiple server instances.html","attachments": []}]diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Manual server installation.html b/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Manually.htmlsimilarity index 76%rename from src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Manual server installation.htmlrename to src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Manually.htmlindex 3aa1347d51..a2e3dbdc6b 100644--- a/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Manual server installation.html+++ b/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Manually.html@@ -5,16 +5,21 @@<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../../../../style.css"><base target="_parent">- <title data-trilium-title>Manual server installation</title>+ <title data-trilium-title>Manually</title></head><body><div class="content">- <h1 data-trilium-h1>Manual server installation</h1>+ <h1 data-trilium-h1>Manually</h1><div class="ck-content">- <p>This page describes manually installing Trilium on your server. <strong>Note that this is a not well supported way to install Trilium, problems may appear, information laid out here is quite out of date. It is recommended to use either Docker or packaged build installation.</strong>- </p>+ <aside class="admonition warning">+ <p>This page describes manually installing Trilium on your server. <strong>Note that this is a not well supported way to install Trilium, problems may appear, information laid out here is quite out of date. It is recommended to use either </strong>+ <a+ class="reference-link" href="#root/pOsGYCXsbNQG/Otzi9La2YAUX/WOcw2SLH6tbX/Dgg7bR3b6K9j/_help_rWX5eY045zbE">Docker Server Installation</a><strong> or </strong><a class="reference-link"+ href="#root/pOsGYCXsbNQG/Otzi9La2YAUX/WOcw2SLH6tbX/Dgg7bR3b6K9j/_help_3tW6mORuTHnB">Packaged server installation</a><strong>.</strong>+ </p>+ </aside><h2>Requirements</h2><p>Trilium is a node.js application. Supported (tested) version of node.jsis latest 14.X.X and 16.X.X. Trilium might work with older versions asdiff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Multiple server instances.html b/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Multiple server instances.htmlnew file mode 100644index 0000000000..8c835e0be6--- /dev/null+++ b/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Multiple server instances.html@@ -0,0 +1,42 @@+<html>++ <head>+ <meta charset="utf-8">+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <link rel="stylesheet" href="../../../../style.css">+ <base target="_parent">+ <title data-trilium-title>Multiple server instances</title>+ </head>++ <body>+ <div class="content">+ <h1 data-trilium-h1>Multiple server instances</h1>++ <div class="ck-content">+ <p>Trilium does not support multiple users. In order to have two or more+ persons with their own set of notes, multiple server instances must be+ set up. It is also not possible to use multiple <a href="#root/pOsGYCXsbNQG/Otzi9La2YAUX/_help_cbkrhQjrkKrh">sync</a> servers.</p>+ <p>To allow multiple server instances on a single physical server:</p>+ <ul>+ <li>+ <p>For <a class="reference-link" href="#root/pOsGYCXsbNQG/Otzi9La2YAUX/WOcw2SLH6tbX/Dgg7bR3b6K9j/_help_3tW6mORuTHnB">Packaged version for Linux</a> or + <a+ class="reference-link" href="#root/Dgg7bR3b6K9j/_help_J1Bb6lVlwU5T">Manually</a>, if starting the server manually just specify a different+ port and data directory per instance:</p><pre><code class="language-text-x-trilium-auto">TRILIUM_NETWORK_PORT=8080 TRILIUM_DATA_DIR=/path/to/your/data-dir-A /opt/trilium/trilium.sh</code></pre>+ <p>For a second instance:</p><pre><code class="language-text-x-trilium-auto">TRILIUM_NETWORK_PORT=8081 TRILIUM_DATA_DIR=/path/to/your/data-dir-B /opt/trilium/trilium.sh</code></pre>+ <p>If using <code>systemd</code>, then set the <a href="https://serverfault.com/questions/413397/how-to-set-environment-variable-in-systemd-service">environment variables in the service configuration</a>.</p>+ <p> </p>+ </li>+ <li>For <a class="reference-link" href="#root/Dgg7bR3b6K9j/_help_rWX5eY045zbE">Using Docker</a>,+ simply use two different containers, each with their own port binding and+ data directory.</li>+ <li>For <a class="reference-link" href="#root/Dgg7bR3b6K9j/_help_moVgBcoxE3EK">On NixOS</a>,+ the only possible way is to use Docker OCI containers or at least one NixOS+ container with its own service definition.</li>+ </ul>+ <p>For support or additional context, see the related <a href="https://github.com/orgs/TriliumNext/discussions/1642#discussioncomment-12768808">GitHub Discussion</a>.</p>+ </div>+ </div>+ </body>++</html>\ No newline at end of filediff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/NixOS server installation.html b/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/On NixOS.htmlsimilarity index 90%rename from src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/NixOS server installation.htmlrename to src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/On NixOS.htmlindex 42a8825962..d77e076abe 100644--- a/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/NixOS server installation.html+++ b/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/On NixOS.html@@ -5,12 +5,12 @@<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../../../../style.css"><base target="_parent">- <title data-trilium-title>NixOS server installation</title>+ <title data-trilium-title>On NixOS</title></head><body><div class="content">- <h1 data-trilium-h1>NixOS server installation</h1>+ <h1 data-trilium-h1>On NixOS</h1><div class="ck-content"><p>This page describes configuring the Trilium module included in NixOS.</p>diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Packaged server installation.html b/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Packaged version for Linux.htmlsimilarity index 96%rename from src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Packaged server installation.htmlrename to src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Packaged version for Linux.htmlindex bca16d20a4..57cfa4168c 100644--- a/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Packaged server installation.html+++ b/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Packaged version for Linux.html@@ -5,12 +5,12 @@<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../../../../style.css"><base target="_parent">- <title data-trilium-title>Packaged server installation</title>+ <title data-trilium-title>Packaged version for Linux</title></head><body><div class="content">- <h1 data-trilium-h1>Packaged server installation</h1>+ <h1 data-trilium-h1>Packaged version for Linux</h1><div class="ck-content"><p>This is essentially Trilium sources + node modules + node.js runtime packageddiff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Docker Server Installation.html b/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Using Docker.htmlsimilarity index 94%rename from src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Docker Server Installation.htmlrename to src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Using Docker.htmlindex 8d136add54..1ce6b7dc11 100644--- a/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Docker Server Installation.html+++ b/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Using Docker.html@@ -5,12 +5,12 @@<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../../../../style.css"><base target="_parent">- <title data-trilium-title>Docker Server Installation</title>+ <title data-trilium-title>Using Docker</title></head><body><div class="content">- <h1 data-trilium-h1>Docker Server Installation</h1>+ <h1 data-trilium-h1>Using Docker</h1><div class="ck-content"><p>Official docker images are published on docker hub for <strong>AMD64</strong>, <strong>ARMv7</strong> and <strong>ARM64/v8</strong>:@@ -51,8 +51,8 @@<h3>Running the Docker Container</h3><h4>Local Access Only</h4><p>Run the container to make it accessible only from the localhost. This- setup is suitable for testing or when using a proxy server like Nginx or- Apache.</p><pre><code class="language-text-x-trilium-auto">sudo docker run -t -i -p 127.0.0.1:8080:8080 -v ~/trilium-data:/home/node/trilium-data triliumnext/notes:[VERSION]</code></pre>+ setup is suitable for testing or when using a prox ay server like Nginx+ or Apache.</p><pre><code class="language-text-x-trilium-auto">sudo docker run -t -i -p 127.0.0.1:8080:8080 -v ~/trilium-data:/home/node/trilium-data triliumnext/notes:[VERSION]</code></pre><ol><li>Verify the container is running using <code>docker ps</code>.</li><li>Access Trilium via a web browser at <code>127.0.0.1:8080</code>.</li>diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Kubernetes server installation.html b/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Using Kubernetes.htmlsimilarity index 95%rename from src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Kubernetes server installation.htmlrename to src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Using Kubernetes.htmlindex bc2f06ae38..4bef270675 100644--- a/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Kubernetes server installation.html+++ b/src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Using Kubernetes.html@@ -5,12 +5,12 @@<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../../../../style.css"><base target="_parent">- <title data-trilium-title>Kubernetes server installation</title>+ <title data-trilium-title>Using Kubernetes</title></head><body><div class="content">- <h1 data-trilium-h1>Kubernetes server installation</h1>+ <h1 data-trilium-h1>Using Kubernetes</h1><div class="ck-content"><p>As Trilium can be run in Docker it also can be deployed in Kubernetes.diff --git a/src/public/app/doc_notes/en/User Guide/navigation.html b/src/public/app/doc_notes/en/User Guide/navigation.htmlindex 499344d916..a928ef545c 100644--- a/src/public/app/doc_notes/en/User Guide/navigation.html+++ b/src/public/app/doc_notes/en/User Guide/navigation.html@@ -19,20 +19,23 @@<ul><li>1. Installing the server<ul>- <li><a href="User%20Guide/Installation%20%26%20Setup/Server%20Installation/1.%20Installing%20the%20server/Packaged%20server%20installation.html"- target="detail">Packaged server installation</a>+ <li><a href="User%20Guide/Installation%20%26%20Setup/Server%20Installation/1.%20Installing%20the%20server/Packaged%20version%20for%20Linux.html"+ target="detail">Packaged version for Linux</a></li>- <li><a href="User%20Guide/Installation%20%26%20Setup/Server%20Installation/1.%20Installing%20the%20server/Docker%20Server%20Installation.html"- target="detail">Docker Server Installation</a>+ <li><a href="User%20Guide/Installation%20%26%20Setup/Server%20Installation/1.%20Installing%20the%20server/Using%20Docker.html"+ target="detail">Using Docker</a></li>- <li><a href="User%20Guide/Installation%20%26%20Setup/Server%20Installation/1.%20Installing%20the%20server/NixOS%20server%20installation.html"- target="detail">NixOS server installation</a>+ <li><a href="User%20Guide/Installation%20%26%20Setup/Server%20Installation/1.%20Installing%20the%20server/On%20NixOS.html"+ target="detail">On NixOS</a></li>- <li><a href="User%20Guide/Installation%20%26%20Setup/Server%20Installation/1.%20Installing%20the%20server/Manual%20server%20installation.html"- target="detail">Manual server installation</a>+ <li><a href="User%20Guide/Installation%20%26%20Setup/Server%20Installation/1.%20Installing%20the%20server/Manually.html"+ target="detail">Manually</a></li>- <li><a href="User%20Guide/Installation%20%26%20Setup/Server%20Installation/1.%20Installing%20the%20server/Kubernetes%20server%20installation.html"- target="detail">Kubernetes server installation</a>+ <li><a href="User%20Guide/Installation%20%26%20Setup/Server%20Installation/1.%20Installing%20the%20server/Using%20Kubernetes.html"+ target="detail">Using Kubernetes</a>+ </li>+ <li><a href="User%20Guide/Installation%20%26%20Setup/Server%20Installation/1.%20Installing%20the%20server/Multiple%20server%20instances.html"+ target="detail">Multiple server instances</a></li></ul></li>