diff --git a/docker-compose.yml b/docker-compose.yml index 079897b..1b275f6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,6 +24,7 @@ services: - ./docker/php/config/php.ini:/usr/local/etc/php/php.ini - ./docker/php/config/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini - ./LOG:/var/www/html/LOG + - uploads_data:/var/www/html/var/uploads extra_hosts: - "host.docker.internal:host-gateway" depends_on: @@ -56,3 +57,4 @@ services: restart: unless-stopped volumes: pg_data: + uploads_data: diff --git a/docker/nginx/conf.d/lesstime.conf b/docker/nginx/conf.d/lesstime.conf index 6be39b6..d5e1b00 100644 --- a/docker/nginx/conf.d/lesstime.conf +++ b/docker/nginx/conf.d/lesstime.conf @@ -5,6 +5,8 @@ server { root /var/www/html/frontend/dist; index index.html; + client_max_body_size 55m; + location ^~ /api/ { root /var/www/html/public; try_files $uri /index.php?$query_string; diff --git a/docker/php/config/php.ini b/docker/php/config/php.ini index cad41f0..6d1eca2 100644 --- a/docker/php/config/php.ini +++ b/docker/php/config/php.ini @@ -1,4 +1,8 @@ [Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone -date.timezone = Europe/Paris \ No newline at end of file +date.timezone = Europe/Paris + +[Upload] +upload_max_filesize = 50M +post_max_size = 55M \ No newline at end of file