Browse Source

config for images manipulation

master
art.dambrine 4 years ago
parent
commit
99f2423f86
  1. 3
      docker/nginx/default.conf
  2. 2
      docker/php/Dockerfile

3
docker/nginx/default.conf

@ -4,12 +4,13 @@
location / { location / {
root /usr/src/app/src/public; root /usr/src/app/src/public;
client_max_body_size 20M;
try_files $uri /index.php$is_args$args; try_files $uri /index.php$is_args$args;
} }
location ~ ^/index\.php(/|$) { location ~ ^/index\.php(/|$) {
client_max_body_size 50m; client_max_body_size 20M;
fastcgi_pass php:9000; fastcgi_pass php:9000;
fastcgi_buffers 16 16k; fastcgi_buffers 16 16k;

2
docker/php/Dockerfile

@ -7,7 +7,7 @@ RUN pecl install apcu
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y \ apt-get install -y \
libzip-dev unzip telnet libzip-dev unzip telnet jpegoptim optipng
# packages # packages
RUN apt-get update \ RUN apt-get update \

Loading…
Cancel
Save