Laradock 修改默认上传大小

austindev 2020-05-20

1 nginx

1.1 nginx / sites / your-site-conf

1.2 add line:

client_max_body_size 1024M;
 
2 php-fpm
2.1 php-fpm / laravel.ini
2.2 改成你想要的大小
2.3 Rebuild php-fpm
$ docker-compose stop
$ docker-compose rm php-fpm
$ docker-compose build php-fpm
$ docker-compose up -d nginx mariadb redis php-fpm ...

相关推荐