Domains and certificates
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
| Kind | Example | Works | See |
|---|---|---|---|
| The service's own opnl.app address | web-shop-k3x9.opnl.app | At once, made with the service | opnl.app addresses |
| Another name under opnl.app | shop.opnl.app | At once, if the name is free | opnl.app addresses |
| Your own domain | app.example.com | Added and verified by its TXT record today; served with your uploaded certificate or behind Cloudflare once own domains are switched on | Your 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:3000The 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 shopHOST 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-bc3249664255Add a domain
openpanel domains add shop.opnl.app --project shop --service webFor 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 --yesThe 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
| Message | What 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. |
opnl.app addresses
The address each public service gets, and the naming rules.
Your own domain
The DNS records, and what works today.
Domains on Cloudflare
Records written, checked and removed by OpenPanel.
Certificates
HTTPS for opnl.app, and an uploaded certificate for your own domain.
API: add a domain
The operation in the API reference.