Skip to main content

Configure custom domain

This page describes how to configure a public custom access domain name for the service.

By default, cloud functions do not provide a default domain name directly. If customers need to use a domain name to access

Preparation

Configure Domain

Domain Association Resources

  • Go to Tencent Cloud TCB environment configuration

  • Select `

  • In the Domain Association Resources section, click the New button

  • Fill in the configuration information:

    • Associated resources: cloud function
    • Resource instance: Select the cloud function service to be accessed.
    • Domain: Select the newly added custom domain
    • Trigger Path: The default is /, and you can fill in the path to be exposed based on actual requirements.
    • Authentication switch: Defaults to disabled. To use TCB authentication
    • Baseband Passthrough: Default is disabled, we set it to enabled.
  • Fill in the configuration information, click "Confirm Creation", and wait for the creation to complete.

  • After creation is completed, you can access the cloud function service via the custom domain.