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): add documentation around setting the various environment variables to control upload size limit
perf3ct2ea60bc4a76c
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation.htmlindex b82d3b1c72..360d21a10e 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation.html@@ -37,13 +37,22 @@and other important Trilium data files are stored in the <a href="#root/_help_tAassRL4RSQL">data directory</a>.If you prefer a different location, you can change it by setting the <code>TRILIUM_DATA_DIR</code> environmentvariable:</p><pre><code class="language-text-x-trilium-auto">export TRILIUM_DATA_DIR=/home/myuser/data/my-trilium-data</code></pre>+<h3>Disabling / Modifying the Upload Limit</h3>+<p>If you're running into the 250MB limit imposed on the server by default,+ and you'd like to increase the upload limit, you can set the <code>TRILIUM_NO_UPLOAD_LIMIT</code> environment+ variable to <code>true</code> disable it completely:</p><pre><code class="language-text-x-trilium-auto">export TRILIUM_NO_UPLOAD_LIMIT=true </code></pre>+<p>Or, if you'd simply like to <em>increase</em> the upload limit size to something+ beyond 250MB, you can set the <code>MAX_ALLOWED_FILE_SIZE_MB</code> environment+ variable to something larger than the integer <code>250</code> (e.g. <code>450</code> in+ the following example):</p><pre><code class="language-text-x-trilium-auto">export MAX_ALLOWED_FILE_SIZE_MB=450</code></pre><h3>Disabling Authentication</h3><p>If you are running Trilium on localhost only or if authentication is handledby another component, you can disable Trilium’s authentication by addingthe following to <code>config.ini</code>:</p><pre><code class="language-text-x-trilium-auto">[General]noAuthentication=true</code></pre><h2>Reverse Proxy Setup</h2>-<p>To configure a reverse proxy for Trilium, you can use either <strong>nginx</strong> or <strong>Apache</strong>.</p>+<p>To configure a reverse proxy for Trilium, you can use either <strong>nginx</strong> or <strong>Apache</strong>.+ You can also check out the documentation stored in the Reverse proxy folder.</p><h3>nginx</h3><p>Add the following configuration to your <code>nginx</code> setup to proxyrequests to Trilium:</p><pre><code class="language-text-x-trilium-auto">location /trilium/ {diff --git a/docs/Developer Guide/!!!meta.json b/docs/Developer Guide/!!!meta.jsonindex 904a715d8a..6e9c247b96 100644--- a/docs/Developer Guide/!!!meta.json+++ b/docs/Developer Guide/!!!meta.json@@ -88,18 +88,18 @@"mime": "text/html","attributes": [{- "type": "label",- "name": "iconClass",- "value": "bx bx-package",+ "type": "relation",+ "name": "internalLink",+ "value": "BRhQZHgwaGyw","isInheritable": false,"position": 10},{- "type": "relation",- "name": "internalLink",- "value": "BRhQZHgwaGyw",+ "type": "label",+ "name": "iconClass",+ "value": "bx bx-package","isInheritable": false,- "position": 20+ "position": 10}],"format": "markdown",diff --git a/docs/User Guide/User Guide/Installation & Setup/Server Installation.md b/docs/User Guide/User Guide/Installation & Setup/Server Installation.mdindex c9812185db..6d199947db 100644--- a/docs/User Guide/User Guide/Installation & Setup/Server Installation.md+++ b/docs/User Guide/User Guide/Installation & Setup/Server Installation.md@@ -30,6 +30,20 @@ By default, `config.ini`, the [database](../Advanced%20Usage/Database.md), and oexport TRILIUM_DATA_DIR=/home/myuser/data/my-trilium-data```+### Disabling / Modifying the Upload Limit++If you're running into the 250MB limit imposed on the server by default, and you'd like to increase the upload limit, you can set the `TRILIUM_NO_UPLOAD_LIMIT` environment variable to `true` disable it completely:++```+export TRILIUM_NO_UPLOAD_LIMIT=true+```++Or, if you'd simply like to _increase_ the upload limit size to something beyond 250MB, you can set the `MAX_ALLOWED_FILE_SIZE_MB` environment variable to something larger than the integer `250` (e.g. `450` in the following example):++```+export MAX_ALLOWED_FILE_SIZE_MB=450+```+### Disabling AuthenticationIf you are running Trilium on localhost only or if authentication is handled by another component, you can disable Trilium’s authentication by adding the following to `config.ini`:@@ -41,7 +55,7 @@ noAuthentication=true## Reverse Proxy Setup-To configure a reverse proxy for Trilium, you can use either **nginx** or **Apache**.+To configure a reverse proxy for Trilium, you can use either **nginx** or **Apache**. You can also check out the documentation stored in the Reverse proxy folder.### nginx