CDN origin configuration
Both storage types connect as CDN origins through the same resource creation wizard, with origin configuration varying by storage type.Object Storage
Two connection modes are available depending on whether the bucket is public or requires authentication.Open CDN resources
Navigate to the CDN section and click Create CDN resource.

Configure the origin source
In the Origin section, Specify content origin is selected by default. Choose a connection type based on bucket visibility:
- Public bucket (anonymous access allowed): In the URL tab, enter the bucket hostname in the Origin source field:
<bucket-name>.<location>.cloud.gcore.lu.- Private bucket (authentication required): Select the S3 storage tab and enter the Access Key ID, Secret access key, AWS region, and Bucket name. Credentials are available in Object Storage > Object Storages > three-dot menu > Details.

(Optional) Add a custom domain
Specify a custom domain — the setup guide covers required DNS changes.
SFTP Storage
SFTP Storage connects as a CDN origin using a URL-based hostname, without bucket authentication options.Configure the origin source
In the Origin section, select the URL tab and enter the origin source in the Origin source field using the format <storage-name>.<hostname>.
The storage name and hostname are available in Object Storage > Object Storages — open the three-dot actions menu for the storage and select Details.

If the storage name is 12345-test and the hostname is ams.origin.gcdn.co, enter 12345-test.ams.origin.gcdn.co in the Origin source field.
CDN request URLs
URL patterns differ by origin type.Object Storage origin
The addressing scheme<bucket-name>.<location>.cloud.gcore.lu hides the storage hostname from CDN requests, keeping the origin private.
Use the following format to request files through CDN:
http(s)://<custom-domain>/<folder>/<file>
If files are in the bucket root rather than a subfolder, omit <folder> from the URL.
Given a bucket mybucket at s-ed1.cloud.gcore.lu and a CDN resource with custom domain cdn.example.com, request picture.png using:
http://cdn.example.com/picture.png
SFTP Storage origin
Upload files to thehtdocs directory in the SFTP storage. When requesting content through CDN, omit the directory from the URL.
Path to a file in the storage:
sftp://12345-test@ams.origin.gcdn.co:2200/export/home/12345-test/htdocs/picture.png
If the CDN custom domain is cdn.example.com, the request URL is:
http://cdn.example.com/picture.png