How to use cloudfront in asgardcms?
Hello, I use s3 to store my static file. Right now I want to use cdn like cloudfront to serve the file. Anybody have try it before? How told the cms to use new cloudfront url as the base url for the static file?
Haven't had your setup myself, but this sounds like you would get more information if you ask on Laravel forum's since Asgard uses any file driver that Laravel provides.
Well with S3, it will work directly, but if on top of S3 you want to use a cloudfront distribution you will have to do it yourself.
the worlflow in Asgard is :
Upload to S3 (if config is properly done)
Then Asgard will know and use the correct url https://s3.eu-central-1.amazonaws.com/xxxxx/photo.jpg
The cloudfront distribution will change the url of https://s3.eu-central-1.amazonaws.com.
So if you don't include your image/video via the Wysiwyg you will be able to link your object easily to the Cloudfront
But like armababy advise, check on Laravel forum's