Skip to main content
Every app you expose through Rigbox gets a subdomain at *.rigbox.dev. That works great for development, but when you want to share something under your own brand, you can attach a custom domain instead. Each app supports one custom domain. The custom domain works alongside the default .rigbox.dev subdomain, so both URLs stay active at the same time.

Prerequisites

Before you begin, make sure you have:
  • A domain you own (e.g., app.yourcompany.com)
  • Access to your DNS settings (through your registrar or DNS provider)
  • An existing Rigbox app that you want to map the domain to

Setting a Custom Domain

You can set a custom domain from the Rigbox dashboard or with the CLI.

Using the Dashboard

Open your app, go to the Access tab, and enter your domain in the Custom Domain field.

Using the CLI

The --app value can be an app id, name, or subdomain.

Configuring DNS

After setting the custom domain, you need to point it at the Rigbox infrastructure. Add an A record in your DNS provider:
If you use Cloudflare, you must turn off the proxy (set it to DNS only / grey cloud). Cloudflare’s proxy intercepts TLS and prevents Rigbox from issuing a certificate for your domain.
DNS changes can take a few minutes to propagate. In most cases, the record is live within 1 to 5 minutes.

Verifying Your Domain

Once the DNS record is in place, you need to verify that it resolves correctly. Verification checks that your domain points to 51.255.194.99.

Using the Dashboard

Click the Verify button next to the custom domain field in the Access tab.

Using the CLI

TLS Certificates

You do not need to set up TLS manually. When the first request arrives on your custom domain, Rigbox automatically provisions a certificate through Let’s Encrypt. This happens transparently and only takes a moment.
The initial request to your custom domain may be slightly slower while the certificate is being issued. All subsequent requests use the cached certificate and are fast as usual.

Removing a Custom Domain

If you no longer want a custom domain attached to your app, remove it from the Access tab in the dashboard, or clear custom_domain by setting it to an empty string. There’s no dedicated remove command, so use a raw API call (the path drops the /api/v1 prefix; rig is already authenticated via rig login):
After removing the custom domain, your app is still accessible at its default *.rigbox.dev subdomain.

Troubleshooting

If verification fails or your custom domain isn’t working, check these common issues:
If you recently changed DNS settings, it can take up to a few minutes for the change to propagate globally. Be patient and retry verification after waiting.

Next Steps