diff --git a/.docker/images/nginx/helpers/blocks.conf b/.docker/images/nginx/helpers/200-blocks.conf similarity index 100% rename from .docker/images/nginx/helpers/blocks.conf rename to .docker/images/nginx/helpers/200-blocks.conf diff --git a/.docker/images/nginx/helpers/expires.conf b/.docker/images/nginx/helpers/210-expires.conf similarity index 69% rename from .docker/images/nginx/helpers/expires.conf rename to .docker/images/nginx/helpers/210-expires.conf index 841106d4..546624ba 100644 --- a/.docker/images/nginx/helpers/expires.conf +++ b/.docker/images/nginx/helpers/210-expires.conf @@ -1,4 +1,8 @@ # Only cache binary files for 30 minutes. These are the default allowed file extensions uploads that are not images. location ~* ^/sites/default/files/.+\.(pdf|doc|docx|txt|xls|xlsx|ppt|pptx|pps|ppsx|odt|ods|odp|mp3|mov|mp4|m4a|m4v|mpeg|avi|ogg|oga|ogv|weba|webp|webm)$ { + include /etc/nginx/conf.d/drupal/location_expires_prepend*.conf; + expires ${BINARY_FILES_EXPIRES:-1800s}; + + include /etc/nginx/conf.d/drupal/location_expires_append*.conf; } diff --git a/.docker/images/nginx/helpers/hotlink.conf b/.docker/images/nginx/helpers/220-hotlink.conf similarity index 100% rename from .docker/images/nginx/helpers/hotlink.conf rename to .docker/images/nginx/helpers/220-hotlink.conf