From 2ea60bc4a76ccd0849c9b8cbeac50de2d12b2e2c Mon Sep 17 00:00:00 2001 From: perf3ct Date: Tue, 13 May 2025 09:49:18 -0700 Subject: [PATCH] feat(docs): add documentation around setting the various environment variables to control upload size limit --- .../Server Installation.html | 11 ++++++++++- docs/Developer Guide/!!!meta.json | 14 +++++++------- .../Installation & Setup/Server Installation.md | 16 +++++++++++++++- 3 files changed, 32 insertions(+), 9 deletions(-) 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.html index b82d3b1c7..360d21a10 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 data directory. If you prefer a different location, you can change it by setting the TRILIUM_DATA_DIR environment variable:

export 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 Authentication

If 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:

[General]
 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

Add the following configuration to your nginx setup to proxy requests to Trilium:

location /trilium/ {
diff --git a/docs/Developer Guide/!!!meta.json b/docs/Developer Guide/!!!meta.json
index 904a715d8..6e9c247b9 100644
--- a/docs/Developer Guide/!!!meta.json	
+++ b/docs/Developer Guide/!!!meta.json	
@@ -87,19 +87,19 @@
                             "type": "text",
                             "mime": "text/html",
                             "attributes": [
+                                {
+                                    "type": "relation",
+                                    "name": "internalLink",
+                                    "value": "BRhQZHgwaGyw",
+                                    "isInheritable": false,
+                                    "position": 10
+                                },
                                 {
                                     "type": "label",
                                     "name": "iconClass",
                                     "value": "bx bx-package",
                                     "isInheritable": false,
                                     "position": 10
-                                },
-                                {
-                                    "type": "relation",
-                                    "name": "internalLink",
-                                    "value": "BRhQZHgwaGyw",
-                                    "isInheritable": false,
-                                    "position": 20
                                 }
                             ],
                             "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.md
index c9812185d..6d199947d 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 o
 export 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 Authentication
 
 If 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