From 655fb5087aedd6df6cee8380c7db8abeca58a9e5 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Tue, 23 Mar 2021 14:42:48 +0100 Subject: [PATCH] Temporary fix for cron bug of NC 21.0 --- Dockerfile | 2 +- nextcloud.env.example | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6757839..342f5d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN apt-get -q update && \ apt-get -qq install \ cron \ nano-tiny && \ - echo "*/5 * * * * su - www-data -s /bin/bash -c \"php -f /var/www/html/cron.php\"" | crontab - && \ + echo "*/5 * * * * su - www-data -s /bin/bash -c \"php -d memory_limit=-1 -f /var/www/html/cron.php\"" | crontab - && \ sed -i '2 i\service cron start' /entrypoint.sh && \ apt-get purge -y nano-tiny && \ rm -rf /var/lib/apt/lists/* && \ diff --git a/nextcloud.env.example b/nextcloud.env.example index 3e3d12c..e0907f1 100644 --- a/nextcloud.env.example +++ b/nextcloud.env.example @@ -4,6 +4,10 @@ NEXTCLOUD_ADMIN_PASSWORD= NEXTCLOUD_DATA_DIR=/var/www/html/data NEXTCLOUD_TABLE_PREFIX=nc_ +# PHP +PHP_MEMORY_LIMIT=512M +PHP_UPLOAD_LIMIT=1024M + # Reverse-proxy and certbot VIRTUAL_HOST=subdomain.domain.tld VIRTUAL_PORT=80