Apache body size limit set in Dockerfile.

This commit is contained in:
mihasinkec 2020-07-29 13:00:16 +02:00
parent bee8e58982
commit db9fa802fb

View File

@ -1,6 +1,6 @@
FROM php:7.2-apache
# Use the default production configuration
# Use the default production configuration.
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
RUN docker-php-ext-install pdo_mysql
@ -10,3 +10,5 @@ RUN ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rew
COPY . /var/www/html
# Set 20M upload size limit for mp3 uploads
RUN sed -i "s/<VirtualHost \*:80>/<VirtualHost \*:80>\n\tLimitRequestBody 20480000\n/" /etc/apache2/sites-enabled/000-default.conf