Docker-DocumentServer
Docker-DocumentServer copied to clipboard
Allow to set file limits via env-file
Do you want to request a feature or report a bug? This is feature request.
What is the current behavior?
Currently the limits are hardcoded in container inside of conf files. For example /etc/onlyoffice/documentserver/default.json
file.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. See #354 for suggestion how they can be changed.
What is the expected behavior? My suggestion is to add the ability to set those limits via env-file, instead of mangling .conf and .json files inside of the container. I propose names:
NGINX_CLIENT_MAX_BODY_SIZE
MAX_FILE_SIZE
MAX_DOWNLOAD_BYTES
INPUT_LIMIT_UNCOMPRESSED_DOC
INPUT_LIMIT_UNCOMPRESSED_XLS
INPUT_LIMIT_UNCOMPRESSED_PPT
So the settings could be done using environment variables like this:
NGINX_CLIENT_MAX_BODY_SIZE=100M
MAX_FILE_SIZE=104857600
MAX_DOWNLOAD_BYTES=104857600
INPUT_LIMIT_UNCOMPRESSED_DOC=50MB
INPUT_LIMIT_UNCOMPRESSED_XLS=300MB
INPUT_LIMIT_UNCOMPRESSED_PPT=50MB
Thank you for your idea
I've created issue 54440 in our private issue tracker to discuss this feature with our team
Hi, just finished with my solution to this. Check it out, please. https://hub.docker.com/repository/docker/alexwoo42/documentserver-ee/general
Dockerfile: Dockerfile.txt
run-document-server.sh: run-document-server.sh.txt
Hi, just finished with my solution to this. Check it out, please. https://hub.docker.com/repository/docker/alexwoo42/documentserver-ee/general
Dockerfile: Dockerfile.txt
run-document-server.sh: run-document-server.sh.txt
Thank you! This saves me a lot of annoying work. I hope this issue gets resolved soon.