Skip to content
Skip to Content

Domains and certificates

The opnl.app address every public service gets, more names under opnl.app, your own domains, HTTPS, and how to list, add and remove them.

A public service's HTTP ports are reached at domains. Every public service with an HTTP port gets an opnl.app address at once, and you can add more names under opnl.app or your own domains. Each domain belongs to one service and reaches one of its HTTP ports.

Domains are on the console's Domains page, and in the CLI, the API and MCP.

Kinds of domains

KindExampleWorksSee
The service's own opnl.app addressweb-shop-k3x9.opnl.appAt once, made with the serviceopnl.app addresses
Another name under opnl.appshop.opnl.appAt once, if the name is freeopnl.app addresses
Your own domainapp.example.comAdded and verified by its TXT record today; served with your uploaded certificate or behind Cloudflare once own domains are switched onYour own domain

Every opnl.app address is served with HTTPS. Your own domain gets its HTTPS from a certificate you upload or from Cloudflare's proxy. See Certificates.

Before you start

The service must be public and have at least one HTTP port. For example, to make a service named web in the project shop public on port 3000:

openpanel services update web --project shop --public --port http:3000

The change takes effect at the service's next deploy, but its opnl.app address is made at once. See Service settings.

List a project's domains

openpanel domains --project shop
HOST                    SERVICE  KIND    VERIFIED         ID
app.example.com         web      custom  waiting for DNS  01a2332a-dd24-7000-b87b-8cd049c2b73c
web-shop-k3x9.opnl.app  web      opnl    yes              01a2332a-b0a8-7000-bcce-bc3249664255

Add a domain

openpanel domains add shop.opnl.app --project shop --service web

For a service with several HTTP ports, choose the one the domain reaches with --port 8080. Without it, the domain reaches the service's lowest-numbered HTTP port.

A name ending in .opnl.app becomes an opnl.app address; any other name is your own domain.

Remove a domain

openpanel domains remove shop.opnl.app --project shop --yes

The name stops working at once and is free for anyone to take.

Who can change domains

Adding and removing domains needs deploy access to the project; anyone who can see the project sees its domains. See Roles and Per-project access.

What can go wrong

MessageWhat it means
"Make the service public before giving it a domain."The service's address is private or none.
"Add an HTTP port to the service first."The service has only TCP or UDP ports, or none.
"Port … is not one of the service's HTTP ports."--port names a port the service does not have as HTTP.
"… is already in use."Another service, in any organization, has this name; for your own domain, another organization proved it first.
"… is reserved. Choose another name."The name is kept back under opnl.app. See Naming rules.
"Enter a domain name such as app.example.com."The name is not a valid domain name.