Cloud Storage Custom Domain
This document describes how to configure a custom domain for Cloud Storage to access files in Cloud Storage through your own domain.
For the complete custom domain workflow (adding a domain, configuring an SSL certificate, selecting an access method, domain ownership verification, DNS resolution, etc.), please refer to Custom Domain Configuration. All domains added through any entry point can be viewed and managed centrally in the HTTP gateway.
Prerequisites
- Have created a CloudBase environment
- Have uploaded the files to be accessed to Cloud Storage
Configure Access
You can bind a domain directly on the Cloud Storage Domain Management page (recommended), or configure it centrally in the HTTP gateway.
Method 1: Bind on the Cloud Storage Domain Management Page (Recommended)
The temporary links for accessing Cloud Storage files will be generated based on the current domain. Custom domains that have been added also support accessing files using the <domain>/<file path> format.
You can view the current domain at the top-right of the Domain Management page; click to switch.
- Go to CloudBase Console - Cloud Storage - Domain Management
- In the "Custom Domain" module, click the "Add Domain" button to open the binding dialog
- In "Trigger Path", enter the HTTP access path, supporting
/or a custom path (e.g./storage) - Select a custom domain and confirm; all bound domains will be displayed in the "Domain Management" list on the detail page
Method 2: Bind in the HTTP Gateway
If you prefer to manage the relationship between domains and resources from a global perspective, you can also configure it centrally in the HTTP gateway:
- Go to the HTTP gateway
- In the "Domain Associated Resources" module, click the "Create" button
- Configure the following information:
| Configuration Item | Description | Example |
|---|---|---|
| Associated Resource Type | Select "Cloud Storage" | - |
| Domain | Select the default domain, a custom domain, or * (match all domains) | Default domain |
| Trigger Path | Set the HTTP access path, supporting / or a custom path | /storage |
💡 Tip: For production, it is recommended to bind a custom domain that has completed ICP filing to obtain full service capabilities. See Custom Domain Configuration for details.
Access Cloud Storage Files
After configuration, you can access files in Cloud Storage through domain + trigger path + file path.
Example:
Assuming the trigger path is /storage and a file images/logo.png exists in Cloud Storage, it can be accessed at:
https://your-domain/storage/images/logo.png