Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit 7970d3d

Browse files
committed
Increase upload limits in PHP and Nginx to 128M
1 parent 8a8d110 commit 7970d3d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

base-slim/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ ENV DATABASE_URL=mysql://root:[email protected]/shopware \
1212
APP_SECRET=def00000bb5acb32b54ff8ee130270586eec0e878f7337dc7a837acc31d3ff00f93a56b595448b4b29664847dd51991b3314ff65aeeeb761a133b0ec0e070433bff08e48 \
1313
LOCK_DSN=flock \
1414
PHP_MEMORY_LIMIT=512M \
15+
PHP_POST_MAX_SIZE=128M \
16+
PHP_UPLOAD_MAX_FILESIZE=128M \
1517
COMPOSER_ROOT_VERSION=1.0.0 \
1618
APP_URL=http://localhost:8000 \
1719
NPM_CONFIG_ENGINE_STRICT=false \
@@ -115,6 +117,9 @@ RUN --mount=type=cache,id=apk-${TARGETARCH},sharing=locked,target=/var/cache/apk
115117
mv /etc/php/conf.d/xdebug.ini /etc/php/conf.d/xdebug.disabled
116118
mv /etc/php/conf.d/tideways.ini /etc/php/conf.d/tideways.disabled
117119
mv /etc/php/conf.d/pcov.ini /etc/php/conf.d/pcov.disabled
120+
121+
sed -i 's/client_max_body_size 8M;/client_max_body_size 128M;/' /etc/nginx/nginx.conf
122+
118123
EOF
119124

120125
ENTRYPOINT ["/entrypoint"]

0 commit comments

Comments
 (0)