Custom CDN
Go to Environment Configuration/Custom CDN and configure the custom CDN
Allows you to distribute static resources (such as images, videos, documents) from cloud storage to global users through a custom CDN network. Compared to the default CDN, this solution combines the low-cost nature of cloud storage with precise caching capabilities of CDN, enabling resource acceleration with lower latency and higher cost-effectiveness.
Core Advantages
- Flexible Control
If the default CDN of CloudBase cannot meet personalized requirements, you can flexibly customize it according to actual application scenarios. - Lightning-fast Access
Global CDN nodes respond to user requests from the nearest location, reducing latency. - Cost Optimization
Reduces origin server bandwidth consumption and decreases cloud storage traffic costs. - High Availability
CDN automatically handles faulty node switching, ensuring service continuity.
Currently only supports Tencent Cloud CDN
Configuration Guide
Prerequisites
- Have a custom domain name that has completed filing.
- Ensure that the bucket has public access permissions configured.
- Have activated the Tencent Cloud CDN service.
Procedures
- Visit the CloudBase Development Platform and go to the System Settings - Custom CDN page.
- Bind cloud storage to a custom domain name
- Automatically create an available CDN domain for you
- Check if the CNAME status is normal
- Click to enable the custom CDN domain
- Upload content to cloud storage
- 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 the CNAME verification fails, you will not be able to enable the custom CDN domain. Please refer to the document Configuring CNAME first.
Billing
After configuring the custom CDN, the relevant fees will be charged by Tencent Cloud CDN. You can purchase the relevant package based on your actual needs. Refer to Billing Overview.
Mini Program Usage
Mini Program users need to configure legitimate request domains before using.
- Log in to the WeChat Official Accounts Platform and go to the Mini Program Admin Console.
- Locate the "Server Domain" option under "Management" - "Development Management".
- Add the custom CDN domain in the "request legitimate domain" section.
- After adding, click "Confirm" to save the settings.

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