Skip to content

Commit

Permalink
fixup! fixup! nginx.conf: redirect legacy image URLs to the new format
Browse files Browse the repository at this point in the history
  • Loading branch information
vitek-rostislav committed Dec 6, 2023
1 parent 56514c0 commit 1f6d6e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ server {
return 301 $scheme://$http_host/content/images/$entity_name$image_type/$image_name.$image_extension$is_args$args;
}

location ~ ^\/content\/images\/(?<entity_name>\w+)(?<image_type>\/\w+)?\/(?<image_name>[\w\-]+_(?<image_id>\d+))\.(?<image_extension>jpg|jpeg|png|gif) {
location ~ ^\/content\/images\/(?<entity_name>\w+)(?<image_type>\/\w+)?\/(?<image_name>[\w\-]*_?(?<image_id>\d+))\.(?<image_extension>jpg|jpeg|png|gif) {
expires 1w;

error_page 418 = @imageResizer;
Expand Down

0 comments on commit 1f6d6e5

Please sign in to comment.