Skip to main content
Publish your service at an address such as my-service.boxliteapp.com. BoxLite manages DNS and HTTPS. To use a hostname you own instead, follow Bring your own 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.

BoxLite-managed domain

Use this route for a hostname such as my-service.boxliteapp.com. BoxLite handles DNS and HTTPS for you. In the console, open Domains → Managed domain → Request domain. Enter a short name, such as my-service, and review the Full domain preview before submitting. Choose an available name using lowercase letters, digits, and hyphens. The page shows your organization’s name-length requirement and remaining allowance. Copy the full hostname into your terminal, replacing the placeholder below. Include neither https:// nor a port:
For example, if you reserved my-service, the production hostname is my-service.boxliteapp.com. Use the hostname actually returned by your environment. Already have a domain? Reuse it instead of requesting another:
Reserving a name uses your organization’s domain allowance. Unbinding it later keeps the name reserved and does not free that allowance.

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.

Troubleshooting