From dca74adbbb700183269783d0d72afafa79ac86fc Mon Sep 17 00:00:00 2001 From: Jacob Dreesen Date: Tue, 20 Jun 2023 11:33:43 +0200 Subject: [PATCH 1/3] Consume `pimcore_image_optimize` queue --- .docker/supervisord.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.docker/supervisord.conf b/.docker/supervisord.conf index 5dcb46f25..7dd03509c 100644 --- a/.docker/supervisord.conf +++ b/.docker/supervisord.conf @@ -2,7 +2,7 @@ # Important Notice: this configuration is not optimized for production use! [program:messenger-consume] -command=php /var/www/html/bin/console messenger:consume pimcore_core pimcore_maintenance --memory-limit=250M --time-limit=3600 +command=php /var/www/html/bin/console messenger:consume pimcore_core pimcore_maintenance pimcore_image_optimize --memory-limit=250M --time-limit=3600 numprocs=1 startsecs=0 autostart=true From 4ac81476c370d38462ce42a3f5b1a31329064170 Mon Sep 17 00:00:00 2001 From: Jacob Dreesen Date: Wed, 12 Jul 2023 11:11:48 +0200 Subject: [PATCH 2/3] Support webp in nginx --- .docker/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.docker/nginx.conf b/.docker/nginx.conf index c41325bd1..7e382a7f2 100644 --- a/.docker/nginx.conf +++ b/.docker/nginx.conf @@ -105,7 +105,7 @@ server { # Assets # Still use a whitelist approach to prevent each and every missing asset to go through the PHP Engine. - location ~* ^(?!/admin)(.+?)\.((?:css|js)(?:\.map)?|jpe?g|gif|png|svgz?|eps|exe|gz|zip|mp\d|m4a|ogg|ogv|webm|pdf|docx?|xlsx?|pptx?)$ { + location ~* ^(?!/admin)(.+?)\.((?:css|js)(?:\.map)?|jpe?g|gif|png|svgz?|eps|exe|gz|zip|mp\d|m4a|ogg|ogv|webp|webm|pdf|docx?|xlsx?|pptx?)$ { try_files /var/assets$uri $uri =404; expires 2w; access_log off; From 5377528a16bc3050a98f7d607b28a3dd2324fcb4 Mon Sep 17 00:00:00 2001 From: Divesh Pahuja Date: Thu, 3 Aug 2023 11:59:05 +0200 Subject: [PATCH 3/3] kick duplicate nginx image/avif config - resolves #161 --- .docker/nginx.conf | 3 --- 1 file changed, 3 deletions(-) diff --git a/.docker/nginx.conf b/.docker/nginx.conf index 7e382a7f2..70c048392 100644 --- a/.docker/nginx.conf +++ b/.docker/nginx.conf @@ -1,9 +1,6 @@ # mime types are already covered in nginx.conf #include mime.types; -types { - image/avif avif; -} upstream php-pimcore10 { server php:9000;