Skip to content

Custom domains

Every project answers at https://<name>.hpy.at. You can also serve it from a domain you own, such as api.example.com. A project can have one custom domain. HappyProto gets and renews its TLS certificate.

Adding a custom domain yourself isn’t switched on yet. Until it is, email support@happyproto.at with the project and the domain, and HappyProto sets it up for you. The records and statuses below are the same either way.

Add a domain

  1. On the project’s Domains tab, press Add domain.
  2. Enter the hostname alone, such as api.example.com: no https://, path or port. Wildcards and IP addresses can’t be added.
  3. Add the two records the dashboard shows at your DNS provider:
Type Name Value
TXT _happyproto.<hostname> happyproto-verify=<token>
CNAME <hostname> <name>.hpy.at

The TXT record proves the domain is yours, and the CNAME sends its traffic to the project. Copy both from the dashboard, which has the real token.

Keep both records in place for as long as the project uses the domain.

On Cloudflare

Set the CNAME to DNS only (the grey cloud), not proxied. HappyProto issues the certificate itself, so it has to see the requests.

At the root of a domain

The root of a domain, such as example.com, can’t hold a CNAME. Use your DNS provider’s CNAME flattening or ALIAS record if it has one. Otherwise, open Can’t add a CNAME to this name? on the Domains tab and add the A record it shows. An A record points at one server, so it needs updating if your project moves; see When a project moves.

Status

DNS changes can take a few hours to reach HappyProto. Press Check DNS now to check again without waiting.

Status What it means
Waiting for DNS The records aren’t both found yet. A domain that isn’t verified within 7 days of being added expires.
Issuing certificate Both records are in place. This usually takes a minute or two.
Live The project answers at the domain.
Needs attention HappyProto couldn’t get a certificate. Check that the CNAME points at <name>.hpy.at, that it isn’t proxied, and that no CAA record blocks Let’s Encrypt.
Stopping The TXT record is missing. Put it back, or HappyProto stops serving the domain a day after it disappeared.
Stopped The TXT record was missing for a day. Put it back to restore the domain.

Make it the primary domain

The primary domain is the address your instance treats as its own. To switch it, press Make primary on the domain and confirm. The project restarts on the new domain, which usually takes a minute or two.

When a project moves

HappyProto sometimes moves a project to another server.

  • With a CNAME to <name>.hpy.at, nothing changes for you: the CNAME follows the project by itself.
  • With an A record, the record still points at the old server. The old server forwards your domain’s traffic to the new one for a limited time, and HappyProto emails you the new address. Update the A record to it before the forwarding ends.

Remove a domain

Press Remove domain. The project stops answering at it. You can then delete the records at your DNS provider.