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