Skip to content

Written for: For administrators

Serve Astrato on your own domain

3 min read · Updated 25 Nov 2026

A custom domain lets people open Astrato at a host name you own, such as analytics.example.com, instead of app.astrato.io. You run a reverse proxy on that host name in your own cloud account. The proxy forwards every request to app.astrato.io and tells Astrato, in the X-Forwarded-Host header, which host name the request arrived on.

There is no setting for a custom domain in Administration. You set up the proxy, then Astrato support enables the domain.

A custom domain is not the same as either of these settings:

  • the Allow list on Administration → Embed Links, which lists the sites that may embed Astrato content in their own pages. See Manage embed links.
  • Administration → Content Security Policy, which lists the sites whose content may load inside Astrato. See Manage Content Security Policy origins.

To show Astrato inside your own web app rather than at your own host name, see Embed an Astrato dashboard in your web app.

You need:

  • a host name you control, and access to its DNS records;
  • an account with a cloud provider that can run an HTTPS reverse proxy, such as AWS or Google Cloud;
  • a TLS certificate for the host name, or a way to request one from your provider.

Whichever provider you use, configure the proxy so that it:

  • serves your host name over HTTPS, with a certificate for that name;
  • forwards every request to app.astrato.io on port 443 over HTTPS;
  • sends the Host and X-Forwarded-Host headers set to your host name, such as analytics.example.com;
  • passes all HTTP methods, all cookies and all query strings through unchanged;
  • does not cache responses.

The two sections below show one way to do this on AWS and on Google Cloud. Any proxy that meets the list above works the same way.

  1. In AWS Certificate Manager, request a public certificate for your host name in the us-east-1 region. CloudFront uses certificates from that region only.
  2. Create a CloudFront distribution with a custom origin of app.astrato.io, protocol HTTPS only. Add a custom origin header X-Forwarded-Host set to your host name.
  3. On the default cache behaviour, set:
    • Viewer protocol policy: Redirect HTTP to HTTPS or HTTPS Only. With HTTP and HTTPS, people can reach Astrato over plain HTTP. Use the same setting on every cache behaviour.
    • Allowed HTTP methods: all methods, including POST, PUT, PATCH and DELETE.
    • Cache policy: the managed CachingDisabled policy.
    • Origin request policy: one that forwards the Host header, all cookies and all query strings.
  4. Add your host name as an Alternate domain name and choose the certificate from step 1.
  5. In DNS, create a CNAME record for your host name that points to the distribution’s domain name, such as d111111abcdef8.cloudfront.net. In Route 53 you can use an alias record instead.

AWS describes these settings in Using custom origins, Cache behavior settings and Requirements for using alternate domain names.

Keep the distribution’s domain name; support asks for it.

  1. Reserve a global static external IP address.
  2. Create an Internet network endpoint group with the fully qualified domain name app.astrato.io on port 443.
  3. Create a backend service that uses the endpoint group, with protocol HTTPS and Cloud CDN off. Add two custom request headers, Host and X-Forwarded-Host, both set to your host name.
  4. Create a global external Application Load Balancer with an HTTPS frontend on port 443, on the reserved address, with a certificate for your host name, routing to the backend service.
  5. In DNS, point your host name at the reserved address.

Google describes Internet network endpoint groups in Internet NEGs overview.

Keep the reserved IP address; support asks for it.

When the proxy is running, contact Astrato support with:

  • your full host name, including any prefix, such as analytics.example.com;
  • for CloudFront, the distribution’s domain name, such as d111111abcdef8.cloudfront.net;
  • for Google Cloud, the load balancer’s public IP address.

When support confirms the domain is enabled, open https:// followed by your host name in a browser and sign in.