docker: allow to control the maximum file size of an import via IMPORT_MAX_SIZE

pull/3740/head
muxator 2020-04-13 01:04:29 +02:00 committed by muxator
parent f4418149cb
commit f5d9b94ca1
2 changed files with 2 additions and 1 deletions

View File

@ -73,6 +73,7 @@ Available options:
* `ADMIN_PASSWORD`: the password for the `admin` user (leave unspecified if you do not want to create it) * `ADMIN_PASSWORD`: the password for the `admin` user (leave unspecified if you do not want to create it)
* `USER_PASSWORD`: the password for the first user `user` (leave unspecified if you do not want to create it) * `USER_PASSWORD`: the password for the first user `user` (leave unspecified if you do not want to create it)
* `TRUST_PROXY`: set to `true` if you are using a reverse proxy in front of Etherpad (for example: Traefik for SSL termination via Let's Encrypt). This will affect security and correctness of the logs if not done * `TRUST_PROXY`: set to `true` if you are using a reverse proxy in front of Etherpad (for example: Traefik for SSL termination via Let's Encrypt). This will affect security and correctness of the logs if not done
* `IMPORT_MAX_FILE_SIZE`: maximum allowed file size when importing a pad, in bytes. Default: 52428800 (50 MB)
* `LOGLEVEL`: valid values are `DEBUG`, `INFO`, `WARN` and `ERROR` * `LOGLEVEL`: valid values are `DEBUG`, `INFO`, `WARN` and `ERROR`
### Examples ### Examples

View File

@ -414,7 +414,7 @@
* *
* File size is specified in bytes. Default is 50 MB. * File size is specified in bytes. Default is 50 MB.
*/ */
"importMaxFileSize": 52428800, // 50 * 1024 * 1024 "importMaxFileSize": "${IMPORT_MAX_FILE_SIZE:52428800}", // 50 * 1024 * 1024
/* /*
* Toolbar buttons configuration. * Toolbar buttons configuration.