mirror of https://github.com/TriliumNext/Notes
feat(docs): document multiple server instances & reorganize
parent
7c88681e70
commit
0acdab29af
@ -1,4 +1,4 @@
|
||||
# NixOS server installation
|
||||
# On NixOS
|
||||
This page describes configuring the Trilium module included in NixOS.
|
||||
|
||||
## Requirements
|
||||
@ -1,4 +1,4 @@
|
||||
# Packaged server installation
|
||||
# Packaged version for Linux
|
||||
This is essentially Trilium sources + node modules + node.js runtime packaged into one 7z file.
|
||||
|
||||
## Steps
|
||||
@ -1,4 +1,4 @@
|
||||
# Kubernetes server installation
|
||||
# Using Kubernetes
|
||||
As 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.
|
||||
@ -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>
|
||||
4
src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Packaged server installation.html → src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Packaged version for Linux.html
generated
4
src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Packaged server installation.html → src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Packaged version for Linux.html
generated
4
src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Kubernetes server installation.html → src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Using Kubernetes.html
generated
4
src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Kubernetes server installation.html → src/public/app/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation/1. Installing the server/Using Kubernetes.html
generated
Loading…
Reference in New Issue