Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 2ea60bc

Browse files
committed
feat(docs): add documentation around setting the various environment variables to control upload size limit
1 parent ae83f0a commit 2ea60bc

File tree

3 files changed

+32
-9
lines changed

3 files changed

+32
-9
lines changed

apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Server Installation.html

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/Developer Guide/!!!meta.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,18 +88,18 @@
8888
"mime": "text/html",
8989
"attributes": [
9090
{
91-
"type": "label",
92-
"name": "iconClass",
93-
"value": "bx bx-package",
91+
"type": "relation",
92+
"name": "internalLink",
93+
"value": "BRhQZHgwaGyw",
9494
"isInheritable": false,
9595
"position": 10
9696
},
9797
{
98-
"type": "relation",
99-
"name": "internalLink",
100-
"value": "BRhQZHgwaGyw",
98+
"type": "label",
99+
"name": "iconClass",
100+
"value": "bx bx-package",
101101
"isInheritable": false,
102-
"position": 20
102+
"position": 10
103103
}
104104
],
105105
"format": "markdown",

docs/User Guide/User Guide/Installation & Setup/Server Installation.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ By default, `config.ini`, the [database](../Advanced%20Usage/Database.md), and o
3030
export TRILIUM_DATA_DIR=/home/myuser/data/my-trilium-data
3131
```
3232

33+
### Disabling / Modifying the Upload Limit
34+
35+
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:
36+
37+
```
38+
export TRILIUM_NO_UPLOAD_LIMIT=true
39+
```
40+
41+
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):
42+
43+
```
44+
export MAX_ALLOWED_FILE_SIZE_MB=450
45+
```
46+
3347
### Disabling Authentication
3448

3549
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
4155

4256
## Reverse Proxy Setup
4357

44-
To configure a reverse proxy for Trilium, you can use either **nginx** or **Apache**.
58+
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.
4559

4660
### nginx
4761

0 commit comments

Comments
 (0)