feat(docs): add documentation around setting the various environment variables to control upload size limit

This commit is contained in:
perf3ct
2025-05-13 09:49:18 -07:00
parent ae83f0a1c7
commit 2ea60bc4a7
3 changed files with 32 additions and 9 deletions

View File

@@ -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 Triliums 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