friendica / docker

Docker image for Friendica
https://friendi.ca
GNU Affero General Public License v3.0
45 stars 18 forks source link

Upload and Memory limits #176

Closed ne20002 closed 2 years ago

ne20002 commented 2 years ago

Can we have an easy was to support setting PHP values? Example: Nextcloud allows setting environment for --env PHP_UPLOAD_LIMIT=1G --env PHP_MEMORY_LIMIT=2G when using docker / podman.

I haven't figured out how to do this with friendica.

nupplaphil commented 2 years ago

good idea, I'll add it

ne20002 commented 2 years ago

This is what is written on https://github.com/nextcloud/docker for the Nextcloud image:

PHP_MEMORY_LIMIT (default 512M) This sets the maximum amount of memory in bytes that a script is allowed to allocate. This is meant to help prevent poorly written scripts from eating up all available memory but it can prevent normal operation if set too tight.
PHP_UPLOAD_LIMIT (default 512M) This sets the upload limit (post_max_size and upload_max_filesize) for big files. Note that you may have to change other limits depending on your client, webserver or operating system. Check the Nextcloud documentation for more information.