I'm using the xrock addon , db attachments store , to store my full images in the external data folder (to allow to be cached by CDN), and all it's ok.
The problem is that if I set $config['externalDataUrl'] = https://cdn.mydomain.com/forum/data/ (<<< a CNAME) images attachments (thumbnails)...