From a36cd92a7f2e4d5c5aedcf41975da402ece85a05 Mon Sep 17 00:00:00 2001 From: matthieu Date: Sun, 15 Mar 2026 18:02:09 +0100 Subject: [PATCH] feat(config) : set upload limits to 50MB and add uploads volume Co-Authored-By: Claude Opus 4.6 (1M context) --- docker-compose.yml | 2 ++ docker/nginx/conf.d/lesstime.conf | 2 ++ docker/php/config/php.ini | 6 +++++- 3 files changed, 9 insertions(+), 1 deletion(-) 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