Add an app domain
nerdit_add_domainServe one app at a subdomain the owner controls, such as app.example.com. Needs the Pro plan; at most 3 domains per account; a bare domain such as example.com is refused (the owner can redirect it to the subdomain at their registrar). Then tell the owner to create exactly the record returned: CNAME <record.name> -> <record.target> (the target is this account's own; when their DNS is on Cloudflare, set it DNS only, not proxied). Nothing is served until that CNAME is seen: the status stays awaiting_dns, and a name not verified by expires_at (24 hours) is removed. Once the record exists, call nerdit_check_domain. Adding the same name to the same app again returns it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | The domain name, a subdomain such as app.example.com. | |
| node_id | Yes | Identifier of the machine, from nerdit_list_nodes. | |
| service_name | Yes | Name of the app on that machine. |