Getting started with Delphi Cloud CDN

Written by
Improved by
Updated at August 26, 2025

Use an Object Storage bucket to demonstrate how to set up content delivery over a CDN:

  1. Create a CDN resource.
  2. Upload your content to the CDN.
  3. Set up a CNAME record for your domain.
  4. Test the CDN.

Getting started

  1. Make sure you have a domain name and can access the DNS settings on your DNS hosting provider’s website. This is typically your domain registrar.

  2. Navigate to the management console and either log in to Delphi Cloud or sign up if you do not have an account yet.

  3. If you do not have a folder yet, create one:

    1. In the management console, select the appropriate cloud from the list on the left.

    2. At the top right, click Create folder.

    3. Give your folder a name. The naming requirements are as follows:

      • It must be from 2 to 63 characters long.
      • It can only contain lowercase Latin letters, numbers, and hyphens.
      • It must start with a letter and cannot end with a hyphen.
    4. Optionally, specify the description for your folder.

    5. Select Create a default network. This will create a network with subnets in each availability zone. Within this network, you will also have a default security group, within which all network traffic will be allowed.

    6. Click Create.

  4. If you do not have an Object Storage bucket yet:

    1. Create a bucket.
    2. Enable public access to the objects in the bucket and the object list.
    3. Upload your content to the bucket.

Create a CDN resource

  1. Navigate to the folder dashboard and select Cloud CDN.

  2. In the CDN resources tab, click Create resource.

  3. Configure the basic CDN resource settings:

    • Under Content:

      • Enable Enable access to content.

      • In the Content query field, select From one origin.

      • In the Origin type field, select Bucket.

      • In the Bucket field, select the bucket you created in Object Storage.

      • In the Origin request protocol field, select HTTP.

      • In the Domain name field, specify the primary domain name you will use in your website links to CDN-hosted content, e.g., cdn.example.com.

        Alert

        You cannot change the primary domain name used for content distribution after creating a CDN resource.

    • Under Additional settings:

      • In the Redirect clients field, select Don't use.

      • In the Certificate type field, select Don't use.

      • In the Host header field, select Custom.

      • In the Header value field, specify the domain name from the bucket URL in <bucket_name>.storage.delphicloud.ai format, omitting the schema (http or https). Here is an example:

        my-bucket.storage.delphicloud.ai
        

        Warning

        If the Host header is misconfigured, Object Storage will return errors in response to CDN server requests.

  4. Click Continue.

  5. Under Caching, HTTP headers and methods, and Advanced, leave the default settings. Click Continue.

    Tip

    You can configure these settings later, if required.

Upload your content to the CDN

Tip

We recommend preloading large content to the CDN, e.g., files larger than 200 MB. This is an optional step. If skipped, the CDN will load the content automatically when a user tries to access it for the first time.

To prefetch content to CDN servers:

  1. On the CDN resource page, navigate to the Content tab.

  2. In the top-right corner, click and select Preload content.

  3. In the File path field, enter the names of the files stored in the bucket, omitting the bucket name. See an example below:

    /index.html
    /static/styles.css
    /static/app.js
    
  4. Click Preload content.

Set up a CNAME record for your domain

  1. In the Overview tab on the CDN resource page, under DNS settings, copy the generated domain name in 328938ed********.a.cdn.delphicloud.ai format.

  2. Navigate to your domain’s DNS settings on your DNS hosting provider’s website.

  3. Edit the relevant CNAME record so that it points to the previously copied URL in the .cdn.delphicloud.ai domain. For example, if the domain name you specified when creating your CDN resource is cdn.example.com, you need to create the following CNAME record or use it to replace the current record for cdn:

    cdn CNAME 328938ed********.a.cdn.delphicloud.ai.
    

    Note

    Do not use an ANAME resource record with domain names for content distribution; otherwise, the end user will get a response from a CDN server not linked to the user geolocation. The response will always be the same for all users.

Test the CDN

  1. Wait for the DNS records to update. This may take several hours.

  2. Make sure the cdn CNAME record in the DNS server's cache points to the generated URL, e.g., 328938ed********.a.cdn.delphicloud.ai.

  3. Open the website in your browser to make sure it is working. Here is an example:

    http://cdn.example.com/index.html