tencent cloud

Tencent Cloud Super App as a Service

DokumentasiTencent Cloud Super App as a Service

Acceleration Configuration

Mode fokus
Ukuran font
Terakhir diperbarui: 2026-04-07 14:47:08

Overview

To ensure that your users can quickly access files stored in COS (similar to picking up a package from a nearby pickup point rather than traveling to a distant central warehouse), we recommend configuring an acceleration service. This will enable faster, more stable, and more secure access to COS resources for users.

Prerequisites

1. Purchase acceleration service

We recommend using Tencent Cloud EdgeOne. If you are already using this service, please refer to the following process for configuration. If you want to purchase the EdgeOne service, please go to Tencent Cloud EdgeOne.

2. Prepare or purchase a domain

Before configuring EdgeOne, you need to prepare or purchase a second-level domain and create a subdomain under it as an acceleration domain. If you need to purchase a domain, refer to Registration Guide for details.

EdgeOne configuration

1. Log in to the EdgeOne console

Log in to the EdgeOne console with the Tencent Cloud account that purchased the EdgeOne service.

2. Add a domain name

On the left sidebar, click Domain management, add a domain name and configure it according to the image below.



The configuration items are as follows:

2.1 Domain name

Fill in the domain name you requested, i.e., the acceleration domain mentioned in the prerequisites.

2.2 Access key ID and Secret access key

Fill in the SecretKey and SecretId for the Tencent Cloud account that activated the COS bucket (the account that purchased the TCSAS plan), which can be obtained via Access management - API keys.







2.3 Origin settings

Configure the COS access domain as the EdgeOne origin.



How to obtain the COS origin server domain name:
On the TCSAS storage configuration page, copy the COS bucket under Configure acceleration domain name, then click See details under Activate COS service to go to the COS console.

Navigate to the COS configuration page, click Bucket list on the left sidebar, and find the target bucket (you can search the COS bucket in the search box).



Find the access domain name in the lower right corner, copy and paste it into the "Origin settings" field.




2.4 Configure DNS resolution

Configure DNS resolution, and click Complete.




3. Configure an HTTPS certificate

On the Domain management page, click Edit in the HTTPS configuration column, and configure the HTTPS certificate.




4. Configure TypeB authentication

On the left sidebar, select Site acceleration, click Rule engine, and configure TypeB authentication.









Add the operation type as Token Authentication, configure your self-specified key, then click "Deploy" in the top right corner after configuration. Return to the Domain Management page, and it will show "Success" once completed.

Note:
TypeB requires authentication for specified file types (with extensions zip, txt, apkg, pem, jpg). The expiration time must be configured to 7200 seconds.

5. Security configuration

Avoid security vulnerabilities in PUT and DELETE for accelerated domains: Block PUT and DELETE operations through rules in EO configuration.
Avoid the issue where the resource list can be viewed directly via the root path of the accelerated domain name: Block the resources at the root path “/” through rules in EO configuration.



6. Final configuration

After adding the domain name and completing TypeB authentication configuration, return to the TCSAS Storage Configuration page. In the TypeB field, fill in the "Primary Key" from the Token Authentication configuration. Fill in the configured acceleration domain below. Click Save, then wait for the system test. A successful test means the configuration is complete. (Note: After configuring the acceleration domain, you need to wait a few minutes as there will be a delay.)
Note:
There will be a delay of a few minutes before the configuration becomes effective.




Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan