Custom domain & branding
Runs the login page under your own address - with your name, your logo and your accent colour. The domain is confirmed via a DNS record.
Purpose: Instead of the default address, the login can run under your own domain, for example auth.kunde.de. Visitors see your name (“Sign in with customer name”), your logo and your accent colour there. So that nobody can claim someone else's domain, you must first prove via a DNS record that the domain belongs to you. Only then does the login page load your branding.
Connect a domain#
Enter the domain
In the dashboard under “Domain”, enter the address you want (e.g.
auth.kunde.de) and save. Only real domains are allowed - no IP addresses, nolocalhost, and the address must not already be registered for another server.Create the DNS record
Below it, the dashboard shows a token and exactly the record required in DNS.
Create the CNAME record
Also create a CNAME record pointing at
cname.modiq.fr- otherwise the domain resolves nowhere and nobody reaches the login page under it. How to do that on Cloudflare, IONOS, Strato and Namecheap is described in Connect a custom domain.Have it checked
The status is re-checked automatically every 5 minutes - manually via “Check DNS now” (likewise at most every 5 minutes). If the record matches, the status switches to “Verified” and the domain is enabled for branding.
The TXT record below only proves ownership - it does not send any visitor to us yet. That is what the CNAME to cname.modiq.fr is for.
DNS verification#
You create a TXT record under _modiq.<your domain> containing the token shown.
| Field | Value |
|---|---|
| Type | TXT |
| Name / host | _modiq - in full: _modiq.auth.kunde.de |
| Value / content | modiq-verify=<your token> |
| TTL | Provider default (e.g. 3600) |
Plus the CNAME that points the domain at our login page:
| Field | Value |
|---|---|
| Type | CNAME |
| Name / host | your domain, e.g. auth.kunde.de |
| Target / value | cname.modiq.fr |
| TTL | Provider default |
Do not change existing records and do not create a second TXT record with the same name. Some providers want only _modiq as the name - the provider appends the domain itself.
The bot queries the record freshly on every check. Possible results:
- Verified – The TXT value matches the token exactly. Branding is active.
- No record found – There is no TXT value under
_modiq.<domain>yet (or the name does not exist). - Wrong value – A different TXT value is present. The content must be exactly
modiq-verify=<token>. - Timeout – The DNS server did not answer within 5 seconds. Wait briefly and check again.
A domain that is already verified stays active even if a later check fails - a brief DNS hiccup should not take the login page down. The error is still shown.
Branding & login page#
- Bot/app name – Appears in the login page header and on the button (“Sign in with <name>”). At most 60 characters.
- Logo URL – Address of the logo, either
https://…or a path on this site (e.g./uploads/logo.png). - Accent colour – Hex colour (e.g.
#29AEFD). It colours buttons, borders and highlights. Without a value, the ModiQ blue stays. - Target after login – Path the user is redirected to after a successful login (e.g.
/dashboard). Only paths on the same site are allowed - never a foreign address.
The branding is loaded only under a verified domain. On the default address and on unverified domains, visitors still see the ModiQ defaults.
Requirements#
For the custom domain to actually work, the server needs two things that live outside the bot:
- A valid TLS certificate for the customer domain (HTTPS). Without a certificate, browsers warn and secure cookies are not set.
- A reverse proxy that accepts the domain, passes the
Hostheader through and distributes requests: the page to the frontend,/apiand/authto the backend.
The custom domain is part of the Pro plan. Without that plan the dashboard shows a notice but stays usable.
Pitfalls#
- On Cloudflare the CNAME must be created without the proxy (grey cloud, “DNS only”). With the orange cloud active, Cloudflare blocks the request with Error 1014 “CNAME Cross-User Banned”, because the target
cname.modiq.frlives in a different Cloudflare account. The record stays the same - only the proxy has to go. - Without TLS and a reverse proxy the feature stays ineffective: the configuration is stored correctly, but the domain points nowhere. That is a server setting, not a bot issue.
- DNS changes are not active immediately. It usually takes 1–15 minutes (depending on the provider's TTL). Only then does the check find the record.
- The token only applies to the registered domain. If you change the domain, a new token is generated and the old record becomes invalid.
- A target path with a foreign address (
https://…,//…) is rejected for security reasons - only own paths such as/dashboardare allowed.