Custom Domains
This guide will walk you through how to connect a domain to Airkit and white-label the links that lead to your application. Connecting a domain to Airkit requires three configuration steps.
To use a custom domain in an application, whether it is a URL Domain or URL Route, that domain has to be compatible with https://letsencrypt.org/docs/certificate-compatibility/.
Step 1: Create a CNAME record in your domain provider
Create a CNAME record for your domain so that it is pointing to the Airkit website. Depending on the realm of the Airkit organization, the URL will differ:
US Realm:
app.airkit.com
EU Realm:
app.airkit.eu
APAC Realm:
app.airkit.com.au
Below is an example configuration for a domain hosted in Amazon AWS:
![organizing info](https://a01-support.airkit.com/connecting-your-domain-to-airkit/Screen%20Shot%202020-06-24%20at%2011.38.32%20AM.png)
Verifying your CNAME
After creating a CNAME, you should verify that your CNAME configuration is correctly set up and resolvable from the public internet. To do this, you can use Dig from the Google Admin toolbox.
Step 2: Creating a URL domain and URL Route
To add a URL Domain and a URL Route in Airkit, go to the Console to add a resource.Β
You need to create URL routes on the same version of Console that you are using to build your application. Keeping track of what version of the Console you are working in is particularly important if your Organization contains apps that were built in multiple versions of the Studio.
The URL console.airkit.com automatically directs to the latest version of Airkit. To access an earlier version, place the desired version in the URL. For instance, if you're building an app on CXR 17.15, make sure to create your Web URL Route Resources on v17-15.console.airkit.com.
To add a URL domain, toggle to Resources and click Create New. Type a unique name to label the domain and select URL Domain in the Capabilities dropdown.
![Screen Shot 2022-04-20 at 12.31.22 PM.png 2012](https://files.readme.io/5a2747d-Screen_Shot_2022-04-20_at_12.31.22_PM.png)
After selecting URL Domain, put in the custom domain name that was created when the CNAME was created. (For example: usher.woodsidebikes.com.) Upon clicking the Create button in the lower right, Airkit will attempt to retrieve the certificate that was created.Β Assuming no errors arise, this URL Domain can then be used to define the base domains of your applications.
After adding a URL domain, add a URL Route resource. Under the Resources tab, Click on Create New, type a unique name to label the route, and select URL Route in the Capabilities dropdown.
![Screen Shot 2022-04-20 at 12.35.15 PM.png 2008](https://files.readme.io/fdf3c72-Screen_Shot_2022-04-20_at_12.35.15_PM.png)
Select the URL domain that was created in the previous step. This will provide the ability to create a custom path on your domain (e.g. usher.woodsidebikes.com/c/order).Β
Lastly, add a Custom URL key. This customizes the URL path that can launch an app.
I want to manage my own certificates
Enterprise Feature
This feature requires an ENTERPRISE license. If you would like to enable this feature for your Airkit Organization, please contact your Airkit representative or contact [email protected].
By default, Airkit handles uses Let's Encrypt to handle all certificates associated with a custom domain. In such cases, Airkit handles certificate renewal automatically: all certificates are checked periodically and auto-renewed well before the expiration date. No maintenance is required on your end.
However, if you want to use certificates signed by your Certificate Authority (CA), Airkit provides the option to check off I want to manage my own certificates before creating your custom resource:
![](https://files.readme.io/87fa2e8-Screen_Shot_2022-10-12_at_8.29.16_AM.png)
Should you choose to manage your own certificate, you will need to manually renew it before it expires.
Configuring your own CA requires extra configuration steps and maintenance. See tutorial here.
Upon clicking the Create button, the following box will appear in the Inspector. Click on the Generate CSR button:
![](https://files.readme.io/2d663db-Screen_Shot_2022-10-12_at_8.30.20_AM.png)
A modal will open. Fill out the information as prompted and then click the Generate Certificate Signing Request Button:
![](https://files.readme.io/ffb732a-Screen_Shot_2022-10-12_at_8.31.14_AM.png)
Your Certificate Signing Request will then display as follows. Note that, in the provided example, the Certificate Signing Request has been greyed out:
![](https://files.readme.io/a37e6bd-2022-10-12_08-31-51.png)
Copy your Certificate Signing Request and save it, then click Done. You can now give your Certificate Signing Request to your CA in order generate a certificate.
Once youβve gotten a signed Certificate back from your CA, click Enter Response from CA:
![](https://files.readme.io/92f0523-Screen_Shot_2022-10-12_at_8.35.13_AM.png)
This will open the following modal:
![](https://files.readme.io/f078b80-Screen_Shot_2022-10-12_at_9.02.34_AM.png)
Enter the signed Certificate from your CA and press Submit Request. If you have successfully configured your Custom Domain so that you can manage your own certificates, you should see the following box in the Inspector:
![](https://files.readme.io/31dfd63-Screen_Shot_2022-10-12_at_9.08.55_AM.png)
Certificates come with an expiration date.
Certificates eventually expire or you may need to update your Certificate subject. In both cases, you must generate a new CSR and upload a new signed Certificate. Click on the Generate CSR button to modify the subject parameters and generate a new CSR. Generating a new CSR is a safe operation and does not remove an existing Certificate until a new signed Certificate is uploaded.
Step 3: Configure the domain in Settings
Open the relevant app in the Studio. Toggle over to Settings.
The Base Domain section specifies the domain of all links associated with this application. To set your white-label domain as an app's base domain, simply select your white-label domain from the associated dropdown menu.
![](https://files.readme.io/a4014ff-Screen_Shot_2022-10-12_at_9.56.20_AM.png)
The Web URL section specifies the precise URL that will launch your app's web experience, including the base domain and the path. Options are available for selection in the dropdown menu. Only URL routes with a domain in common with your set Base Domain will appear for selection, so be sure to select your white-label base domain before selecting your white-label Web URL.
Save your changes, and, once published, the application will be accessible by the specified white-label links.
Updated almost 2 years ago