From 99f2423f86f870550bb5b61a1073347cece5f35e Mon Sep 17 00:00:00 2001 From: "art.dambrine" Date: Mon, 5 Apr 2021 20:07:53 +0200 Subject: [PATCH] config for images manipulation --- docker/nginx/default.conf | 5 +++-- docker/php/Dockerfile | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf index 53c5dfd..ebeccc4 100644 --- a/docker/nginx/default.conf +++ b/docker/nginx/default.conf @@ -4,12 +4,13 @@ location / { root /usr/src/app/src/public; - + client_max_body_size 20M; + try_files $uri /index.php$is_args$args; } location ~ ^/index\.php(/|$) { - client_max_body_size 50m; + client_max_body_size 20M; fastcgi_pass php:9000; fastcgi_buffers 16 16k; diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index 35108cb..a21dd66 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile @@ -7,7 +7,7 @@ RUN pecl install apcu RUN apt-get update && \ apt-get install -y \ -libzip-dev unzip telnet +libzip-dev unzip telnet jpegoptim optipng # packages RUN apt-get update \