Skip to main content
Object Storage and SFTP Storage can serve as origins for Gcore CDN resources, delivering content from storage through the CDN network.

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.
1

Open CDN resources

Navigate to the CDN section and click Create CDN resource.

CDN resources list with the Create CDN resource button
2

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.
CDN resource creation form with URL tab and Origin source field
3

(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.
1

Open CDN resources

Navigate to CDN resources and click Create CDN resource.

CDN resources list with the Create CDN resource button
2

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.

Storage details panel showing the storage name and hostname fields

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.

3

(Optional) Add a custom domain

Specify a custom domain — the setup guide covers required DNS changes.

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
By default, buckets and all stored files are private. To make files public, configure ACL rules using AWS CLI or S3cmd, or follow the Amazon ACL documentation.

SFTP Storage origin

Upload files to the htdocs 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