diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e507a4c0..6f487596 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -23,7 +23,7 @@ }, "updateContentCommand": "composer install", - "postCreateCommand": "php ./.docker/run.php", + "postCreateCommand": "./.docker/entrypoint.sh php ./.docker/run.php", "containerEnv": { "UID": "2000", "GID": "2000", diff --git a/.docker/run.php b/.docker/run.php index 4539b4df..381a4278 100755 --- a/.docker/run.php +++ b/.docker/run.php @@ -8,8 +8,8 @@ chown('/app/data', 'shimmie'); chgrp('/app/data', 'shimmie'); // Look at docker environment variables -$MAX_FILE_UPLOADS = getenv('MAX_FILE_UPLOADS') ?: "20"; -$UPLOAD_MAX_FILESIZE = getenv('UPLOAD_MAX_FILESIZE') ?: '20M'; +$MAX_FILE_UPLOADS = getenv('MAX_FILE_UPLOADS') ?: "100"; +$UPLOAD_MAX_FILESIZE = getenv('UPLOAD_MAX_FILESIZE') ?: '100M'; $MAX_TOTAL_UPLOAD = ini_parse_quantity($UPLOAD_MAX_FILESIZE) * intval($MAX_FILE_UPLOADS); // Generate a config file for whatever web server we are using today