Domains and automatic TLS
Every new cluster gets a default HTTPS address right away. Add a managed subdomain with the name you want, or register a custom domain and expose your apps on it. The gateway handles certificates, so you don't configure TLS in your app.
#overview
The platform takes care of addresses and certificates
Default address
Every cluster gets a default address automatically, served over HTTPS from the start.
Managed subdomains
Register the name you want under a domain run by the platform and it goes live right away, with a certificate applied.
Register a custom domain
Register a fixed domain such as api.example.com or a *.example.com wildcard. You prove ownership with a DNS TXT record.
Several domains per app
Pick the domains to expose when you deploy. If you pick a wildcard, choose a subdomain name for each app.
TLS at the gateway
The YakCloud gateway handles HTTPS certificates. Your app only needs to open a plain HTTP port.
Automatic cleanup
Deleting an app removes the domains only that app used. Deleting a cluster removes all of its domain connections.
#how
How it works
Add a domain
In the cluster, go to Settings → Domains and click + Add domain.
Verify ownership
For a custom domain, add the TXT record the console shows to your DNS and click Verify. Managed subdomains skip this step.
Expose your app
Pick the domains to expose when you deploy or edit an app.
# Ownership record for your custom domain (the console gives you the value) _yakcloud-verify.api.example.com TXT "<value from the console>" # CLI: register the domain and attach it to the workload web $ yakcloud domain api.example.com web
#notes
Good to know
- A custom domain is connected, with its certificate, once it passes the TXT ownership check.
- In a wildcard domain,
*.can only be the leftmost label. - It can take a few minutes for a TXT record to show up in DNS.