Fix bigger file upload docker
This commit is contained in:
parent
ac228c3a54
commit
aea9c8e878
@ -45,4 +45,8 @@ RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
|||||||
RUN curl -sS https://getcomposer.org/installer | php -- \
|
RUN curl -sS https://getcomposer.org/installer | php -- \
|
||||||
--install-dir=/usr/local/bin --filename=composer
|
--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
|
WORKDIR /var/www
|
||||||
|
@ -3,6 +3,8 @@ server {
|
|||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
root /var/www/public;
|
root /var/www/public;
|
||||||
|
|
||||||
|
client_max_body_size 50M;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$query_string;
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user