Skip to main content
Use a subdomain you control, such as app.example.com, as the public address of your service. BoxLite verifies your DNS records and manages the HTTPS certificate. For a hostname provided by BoxLite, follow Managed domain.

Before you start

Install the latest CLI in your local terminal:
Create an API key in the console, then sign in:
Paste your key at the prompt. app is the saved context used throughout this guide. Use the same organization in the console and CLI.

Bring your own domain

Use this route for a hostname you own, such as app.example.com. You need access to its DNS provider and an active organization subscription. The Custom domain option must be enabled for your deployment.
1

Add your subdomain

In the same organization, open Domains → Custom domain → Add custom domain. Enter your public subdomain and click Get DNS configuration.Use an ASCII or Punycode subdomain, such as app.example.com. Apex domains such as example.com and wildcards such as *.example.com are not supported.If you already started configuring this hostname, adding it again resumes that configuration. Delete an existing configuration before adding a different hostname when your slot is occupied.
2

Add the three DNS records

At your DNS provider, add every record shown in the console. Copy each Name and Value exactly; use the values generated for your configuration.
If you use Cloudflare, set both CNAME records to DNS only. If your DNS editor automatically appends the zone suffix, enter relative names and check the resulting full record names. Keep the certificate authorization record separate from the traffic record.
3

Verify DNS and wait for HTTPS

Return to BoxLite and click Configured, verify. Fix any failed DNS records, wait for the changes to propagate, and verify again.After DNS verification succeeds, BoxLite continues setting up HTTPS. Wait until the status is Ready before binding a box. If HTTPS setup fails, click Retry. If the page shows Setup completed instead of Ready, check that your organization has an active subscription.Keep all three DNS records after setup: routing and certificate renewal depend on them.
Set the verified hostname in your terminal, without a scheme, port, or path:
Replace the example with your own hostname, then continue below. Custom-domain configuration uses a separate allowance. An unfinished configuration occupies the slot; see Domain allowances.

Publish your service

Use the hostname saved in DOMAIN below.
1

Choose the service to expose

Set the box ID or name and the port your service listens on inside the box:
Replace 29090 with your service’s port. The service must listen on 0.0.0.0, rather than only 127.0.0.1.
2

Open the port and bind the domain

The tunnel command registers the port for public access and prints its generated URL. The bind command gives that port your chosen hostname and prints its HTTPS URL.All three pieces are required: inbound access, a public tunnel for the port, and the domain binding. Binding alone does not make a service public.This is a public endpoint. If your service needs sign-in or API authentication, enforce it in the application.
3

Open your fixed URL

Open https://<YOUR_FULL_DOMAIN> in your browser, or request it from your terminal:
The header skips the preview notice for scripted requests; it does not grant access or bypass your application’s authentication.You should receive your service’s response. For the sample server, look for Directory listing for /. Share this HTTPS address with your clients; they do not need the box ID or internal port.

Manage the service

To move the domain to another box, prepare the new service and its public tunnel, then run domain bind again with the same hostname and the new box and port. This changes routing; it does not copy application data. To stop routing the domain while keeping its configuration:
Unbinding retains the hostname and its allowance. The generated tunnel URL remains accessible. To close public access to that port too:
If you created the sample box and no longer need it:
Deleting the box does not release or clear its domain binding. Unbind first or point the domain to another box. For idle stopping and request-triggered startup, see Box lifecycle. Save the service as the box’s startup command so it runs after a restart.

Delete a custom domain configuration

To release the custom-domain slot, open the configuration under Domains → Custom domain, click Delete, then Confirm deletion. Deletion stops new requests through that hostname and releases the configuration slot. You can then remove its three DNS records. The generated tunnel URL remains separate; revoke the tunnel as described above if you also want to close public access to the port.

Troubleshooting