NGINX: Rewrite image location
Ok I think I got some kind of way that works for me (only not yet with the dynamic folder /1/
but I probably will fix that later).
Here is the code for the nginx config:
location ~ ^/images/(.*)$ { try_files $uri $uri/ /wp-content/plugins/myplugin/uploads/$1;}
Edit:
Below the code that also handles the dynamic ID folder of the user:
location ~ ^/images/(.*)/(.*)$ { try_files $uri $uri/ /wp-content/plugins/veilgarant/uploads/$1/$2;}