Connect S3 storage to CDN. Create a CDN resource and request content from CDN

Create CDN resource
Request content from CDN

CDN Resource settings

Go to the CDN tab and press Create CDN resource.

mceclip1.png

Specify values in the fields:

mceclip0.png

Request content from CDN

An addressing scheme where you specify the bucket at the beginning (<bucket-name>.<location>.cloud.gcore.lu) allows you to increase the security of your CDN usage because you hide the Hostname of your repository.

Use the following schema to request uploaded files:

http(s)://<Custom domain>/<folder*>/<file>

*If the folder was created in the bucket. If files were added to the root of the bucket - specify file names.  

For example, you've: 

  • used a bucket mybucket, S3 storage in the Luxembourg location s-ed1.cloud.gcore.lu
  • created a CDN resource for the storage with the Custom domain with cdn.example.com

To request file picture.png, which was uploaded into the bucket, from CDN use the following URL:

http://cdn.example.com/picture.png

Note! By default, created buckets and all the stored files in buckets are private. To make a file public, read an article on ACL and policy or official documentation.

 

Was this article helpful?
Recently viewed articles