Skip to main content

Custom CDN

Allows you to distribute static resources (such as images, videos, documents) from cloud storage to global users quickly via a custom CDN. Compared to the default CDN, this solution combines the low-cost characteristics of cloud storage with the precise caching capabilities of CDN to achieve lower latency and higher cost-effectiveness for resource acceleration.

Core Advantages

  • Flexible Control
    If the default CDN of CloudBase cannot meet personalized requirements, it can be flexibly customized according to actual application scenarios.
  • High-Speed Access
    Global CDN nodes respond to user requests locally to reduce latency.
  • Cost Optimization
    Reduces bandwidth consumption on the origin server, thereby lowering cloud storage traffic costs.
  • High Availability
    CDN automatically handles faulty node switching to ensure service continuity.
tip

Currently only supports Tencent Cloud CDN.

Configuration Guide

Prerequisites

  • A custom domain that has completed ICP filing.
  • Ensure that the bucket has public access configured.
  • Tencent Cloud CDN service has been activated.

Operation Steps

  1. Access the CloudBase platform and navigate to System Settings - Custom CDN page.
  2. Bind cloud storage and custom domain
  3. Automatically creates an available CDN domain for you.
  4. Confirm that the CNAME status is normal.
  5. Click to enable custom CDN domain
  6. Upload content to cloud storage
  7. Test if the CDN is working

Notes

CDN Configuration

You can go to the CDN console to modify the automatically created domain configuration.

CNAME Configuration

If CNAME verification fails, you cannot enable custom CDN. Please refer to the documentation Configuring CNAME first.

Billing

After configuring custom CDN, relevant fees will be charged by Tencent Cloud CDN. You can purchase relevant packages based on your actual needs. Refer to Billing Overview.

Mini Program Usage

Mini-program users need to configure a valid request domain before use.

  • Log in to the WeChat Official Account Platform and access the Mini Program management console.
  • In "Management" - "Development Management", find the "Server Domains" option.
  • Add the custom CDN domain to "valid request domain".
  • After adding, click "OK" to save the settings.

Permission Settings

If your cloud storage permission is set to public read, please ensure that the hotlink protection feature in the custom CDN advanced settings is disabled; otherwise, files may become inaccessible.