XF 2.0 Specify domain for local filesystem adapter

Jake B.

Well-known member
I'm wanting to load images from the data directory using a CDN, but still want all of the files to ultimately be stored exactly as they are now. The CDN is setup to automatically load and cache images at cdn.site.com/data/xxxx.jpg from site.com/data/xxxx.jpg, just need a way for thumbnail URLs to correctly generate. Is there an easy way to specify the domain to generate URLs for with the local filesystem adapter in Flysystem? I've looked through their documentation but couldn't find anything, and am not really familiar enough with Flysystem so am probably looking in the wrong place anyways
 
Isn't this just setting the externalDataUrl via config.php? (On the assumption that the CDN does an origin pull-style system, when requested.)
 
Back
Top Bottom