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

Commit 1854d3e

Browse files
authored
Merge pull request #1921 from TriliumNext/docs/add-upload-size-env-var-docs
Add documentation around setting the various environment variables to control upload size limit
2 parents 73e1487 + 2ea60bc commit 1854d3e

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
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/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)