CDN Resource settings
Go to the CDN tab and press Create CDN resource.
Specify values in the fields:
- Path to your bucket in following format
http(s)://<bucket-name>.<location>.cloud.gcore.luMore details in the "Request content directly from the S3 storage" guide. S3 storage supports both HTTP and HTTPS delivery. So choose any pull protocol you prefer.
- Custom domain, e.g., cdn.example.com. Read more about the personal domain setup in the "Create a domain name for content delivery through a CDN" guide.
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:
*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: