X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/0c44c8dc350bc40519993dfa09266c47ccc2b454..ebac563f90dd1d32e680a47bc03063392fee9ea3:/config/nginx.conf diff --git a/config/nginx.conf b/config/nginx.conf index e3fa24fae..41fd52d8d 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -143,9 +143,9 @@ http { rewrite ^/(0\.[0-9]+)/(.*)$ /api/$1/$2; rewrite ^/capabilities$ /api/capabilities; } - + # Strip asset tags - location ~ ^/(images|javascripts|openlayers|stylesheets)/ { + location ~ ^/(images|javascripts|openlayers|stylesheets|user/image)/ { rewrite ^/(.*)/[0-9]+$ /$1; }