Skip to main content

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.

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

Current Domain

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.

  1. Go to CloudBase Console - Cloud Storage - Domain Management
  2. In the "Custom Domain" module, click the "Add Domain" button to open the binding dialog
  3. In "Trigger Path", enter the HTTP access path, supporting / or a custom path (e.g. /storage)
  4. 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:

  1. Go to the HTTP gateway
  2. In the "Domain Associated Resources" module, click the "Create" button
  3. Configure the following information:
Configuration ItemDescriptionExample
Associated Resource TypeSelect "Cloud Storage"-
DomainSelect the default domain, a custom domain, or * (match all domains)Default domain
Trigger PathSet 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