Fix bigger file upload docker

This commit is contained in:
weeb 2025-05-02 15:11:28 +02:00
parent ac228c3a54
commit aea9c8e878
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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;
}