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
- Domain and SSL certificate, you can also purchase at Tencent Cloud SSL Certificate, and a single domain certificate is sufficient.
- Or upload your existing certificate at Tencent Cloud SSL Certificate.
Configure Domain
- Go to Tencent Cloud development environment configuration. HTTP Access
- In the
custom domainsection, selectAdd domain
- In the
- Fill in the prepared domain and certificate, click
Confirmto complete domain configuration.
- Fill in the prepared domain and certificate, click
Domain Association Resources
Select `
In the
Domain Association Resourcessection, click theNewbuttonFill 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.