diff --git a/Dockerfile b/Dockerfile index d2c9d71..035bdb2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,4 +45,8 @@ RUN apt-get clean && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- \ --install-dir=/usr/local/bin --filename=composer +# Fix PHP post and upload size +RUN echo "upload_max_filesize=10M" > /usr/local/etc/php/conf.d/uploads.ini && \ + echo "post_max_size=50M" >> /usr/local/etc/php/conf.d/uploads.ini + WORKDIR /var/www diff --git a/nginx/default.conf b/nginx/default.conf index c63f01e..7d81eb3 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -3,6 +3,8 @@ server { index index.php index.html; root /var/www/public; + client_max_body_size 50M; + location / { try_files $uri $uri/ /index.php?$query_string; }