*.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
--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:
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 to51.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.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 clearcustom_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):
*.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
- App Visibility - control who can access your app through authentication and access modes
- Expose Ports & Route Apps - learn how routing and subdomains work under the hood