This guide will quickly show you how to use a custom domain to access the AI gateway. The AI gateway supports IP address-based access but does not provide a domain name access point. Therefore, you need to add an A record in your domain's DNS pointing to the IP address provided by the AI gateway.
Overview
You need to complete the following steps sequentially:
1. Add an A record in DNS to bind to the IP address provided by the AI gateway.
2. Bind a certificate (if HTTPS is used to access the gateway).
Operation Steps
Step 1: Add an A Record in DNS to Bind to the IP Address Provided by the AI Gateway
2. On the instance list page, select the instance ID you want to use to go to the gateway instance details page.
3. View Network Configuration > Public Load Balancer to obtain the access IP address.
4. Add an A record in DNS to bind the domain name to the public IP address.
Step 2: Binding a Certificate (If HTTPS Is Used to Access the Gateway)
If you need to access gateway resources using HTTPS, see the Certificate Management steps to bind a certificate. Note:
If no certificate is bound, a certificate mismatch with the custom domain may occur when the custom domain is accessed using the HTTPS protocol. If you are testing with the curl tool, add the -k parameter to skip server certificate verification. In a production environment, using HTTPS requires binding a certificate.