Domains
A hostname that points to your app. klickops issues the TLS certificate and renews it for you.
On this page
What it is
A domain is the public address of an app. You give klickops a hostname and tell it which app it belongs to. klickops sends visitors there. It also issues a certificate and renews it before it expires. You don't need to set up anything in the container.
Usually a domain belongs to exactly one app. A hostname belongs to the app it points to. So you manage it in the app's Domains tab. Sometimes several apps share one hostname through different paths. You edit that hostname on the project's Domains page.
When you'd use it
- Your app should be reachable in a browser.
- You want HTTPS and don't want to deal with certificate files.
- You are moving a hostname from another provider. The certificate should be ready before you switch the DNS.
You don't need a domain to reach another app in the same project. Apps in a project reach each other by name on the internal network. A public hostname only makes an internal service easier to attack.
Get a hostname
There are two ways. The first one needs no DNS at all.
A klickops subdomain. Press Add domain and keep klickops subdomain selected. klickops then gives you a subdomain under its own wildcard. It works right away, and the certificate is already valid. The subdomain's name is a random string. That way your project's name doesn't show up in public DNS.
Your own domain. You add the hostname and point it at klickops.
- Open the app, go to Domains and add your hostname. Your organization has to verify the domain first. The steps are below.
- klickops shows the
CNAMErecord you need to create. For a root domain likeacme.ch, use your provider's ALIAS or ANAME record. CNAME flattening works too. The target stays the same. - Create the record with your DNS provider. Planning more subdomains? A wildcard
CNAMEcovers all of them at once. - Wait until the check turns green. klickops checks the DNS. As soon as the record resolves, klickops issues the certificate. This usually takes a minute or two.
Add the domain before you send real visitors to it. The certificate is ready once the DNS resolves. Switch over only after the check is green. Then no visitor ever sees a warning.
Verify your domain first
An organization proves once that it owns a domain. After that, every project in the organization can use the domain and all its subdomains. Nobody else can then use a hostname under it. That includes a hostname that still points at klickops.
- Open Domains in your organization's sidebar and press Verify a domain. Owners and admins can do this. Everyone else only sees the list.
- Add the
TXTrecord it shows at your DNS provider. The name is_klickops-challenge.<your domain>and the value isklickops-verify=…. - Press Check again. Once klickops finds the record, the domain shows Verified. You can then delete the record again.
Verify the domain you registered, for example acme.ch. That also covers shop.acme.ch and www.acme.ch. Domains that worked before verification existed keep working.
Settings reference
| Setting | Default | What it does |
|---|---|---|
| Hostname | none | The name visitors type. Each hostname gets its own domain resource. |
| App | required | The app that receives the requests, and its port. |
| HTTPS | on | Issues and renews a certificate. Leave it on. |
| Always use HTTPS | on | Redirects unencrypted requests to the secure address. |
| Require klickops login | off | Only members of the project get in. Everyone else has to sign in first. An internal tool then needs no login of its own. |
| Routes | / | Sends only a certain path to an app. You need this when several apps share one hostname. |
Limits and gotchas
- Each hostname can exist only once. The controller in front of the apps can't merge two entries for the same host. So klickops rejects a duplicate hostname. That way it is never applied halfway.
- Certificates need public DNS. The certificate authority checks over the internet that you own the name. A hostname that only your internal network knows can't get a public certificate.
- Root domains need an alias record. Most DNS providers don't allow a
CNAMEon a root domain. Use your provider's alias record. Or pointwwwat klickops and redirect the root domain to it. - A domain follows its DNS. If another organization later proves it controls your verified domain, the domain moves to that organization. Your list then shows it as verified elsewhere. Your running domains keep answering. To change one of them, you have to verify the domain again.
- Your own domains depend on your plan. On the free plan, apps only run under their klickops subdomain. Paid plans include a set number of custom domains per organization.
- There are no wildcard certificates. Every address gets its own certificate. Already have one, such as a wildcard certificate? Choose Upload one now in the domain's HTTPS section. It goes into the Vault. Replace it there when it is renewed.
- Traffic counts the answers of your app. The domain page shows requests per second, the share of server errors and the response time under Traffic. A visitor who gives up before the answer, or a path no app serves, is not in it. Where your platform keeps access logs, the page also shows the data sent, every answer visitors got and the most requested paths. Numbers and ids in a path show as
:id. The charts appear once your platform measures them. - Removing a domain takes effect immediately. As soon as you delete it, requests stop arriving. If the name is in use, move the DNS first.
Related
- Apps: what a domain points to.
- A domain gives the app an address. The project firewall decides who may use it.