These settings are on Customer site › Domain (admins by default). HAIMDALL must already be reachable over HTTPS: see HTTPS and Reverse Proxy.
Set the public address
Tell HAIMDALL the address customers use, for example https://help.example.com. HAIMDALL builds every complete link it writes from it: the canonical links search engines read, the AI feeds (llms.txt, the knowledge-base export, the RAG chunks), the REST API and the connection details shown under Access › Agents & integrations. Without it, HAIMDALL uses whatever address each request arrives on, which behind a proxy can be an internal one.
Set it in either of two ways:
in the editor, on Customer site › Domain (admins by default): type the address, or click Use this address to take the one you're using now, and Save;
or on the server, with
HAIMDALL_PUBLIC_URLin.env(see Configuration Reference). This takes priority, and the Domain screen then shows the address read-only.
Use just the address: https://, the host name and, if needed, a port. Serving the help site under a path such as https://example.com/help isn't supported; give it its own host name (a subdomain such as help.example.com) instead.
Setting the address doesn't change where HAIMDALL can be reached: DNS, the certificate and the proxy still decide that. System › Health shows the address under Public address, and warns if it isn't set, or if the Health page itself arrived on a different host name or over plain HTTP, which usually means the proxy isn't forwarding Host or X-Forwarded-Proto (see Checking the proxy in HTTPS and Reverse Proxy). Setting the address is also a step in the editor's Setup guide.
Optional: a separate address for the editor
By default one address serves everything: the help site, the editor and sign-in. You can give the editor its own address instead, for example https://docs-admin.example.com, so your team signs in somewhere customers never see, and so you can restrict that address to your own network at the proxy.
When it's on:
the editor, Preview and sign-in pages move to the editor address: opening them on the public address sends you there;
customers who open the help site on the editor address are sent to the public address. People signed in to the editor can still view the help site there, including while it's closed or for a version that's still being prepared;
the API, the AI feeds, search and file downloads work on both addresses;
requests that arrive on any other address, such as the server's own
localhost, aren't redirected by this setting, so you can always reach HAIMDALL from the server itself. (To send other names to the public address, see Optional: send other addresses to the public address below.)
Your team signs in again at the editor address: signing in on one address doesn't sign you in on another.
Setting it up
Set the public address (above). The editor address must be a different host name.
Point the editor's host name at your proxy (DNS), give it a certificate, and have the proxy forward it to the same HAIMDALL, exactly like the public address. In the nginx and Caddy examples above, that's the second name.
Open
https://<editor address>/editor/domain, sign in, and under Separate editor address click Use this address, then Switch on, and confirm.
You can only switch it on from the editor address itself: that proves the address already reaches HAIMDALL, so nobody can lock themselves out with a typing mistake. System › Health shows both addresses under Editor address. To switch it off, click Switch off on the same screen.
On the server, HAIMDALL_EDITOR_URL=https://docs-admin.example.com in .env switches it on instead, and takes priority over the screen.
If you can't reach the editor
If the editor address stops working (a DNS or certificate problem, for example), switch the separate address off on the server, then use the public address as before. Either:
docker compose exec app node tools/domain-reset.cjswhich switches it off within a few seconds, and also stops sending other addresses to the public address (add --all to clear the public address too), or set HAIMDALL_EDITOR_URL=off in .env and run docker compose up -d. While HAIMDALL_EDITOR_URL is set, the Domain screen can't change the setting; remove it from .env to manage it on screen again.
Optional: send other addresses to the public address
Sometimes more than one name leads to your HAIMDALL server. This switch sends visitors who arrive on any of the other names to the public address, so readers, bookmarks and search engines all end up in one place. It's off by default.
When to switch it on
wwwand withoutwww. Bothhelp.example.comandwww.help.example.comreach the server, and you want everyone onhelp.example.com.You changed your help site's address. You moved from
support.oldname.comtohelp.example.comand kept the old name pointing at the server, so old links, bookmarks and search results still work. Visitors land on the same page at the new address, and search engines move the old listings across.Internal names get shared. People in your organisation reach the help site at a server name such as
haimdall01.corp.localand pass those links on. With the switch on, every one of those links opens on the public address.
When to leave it off
Only one name reaches HAIMDALL: there's nothing to redirect.
Your reverse proxy or load balancer already redirects the other names (many do, and that's the usual place for it). You don't need both.
What happens when it's on
A visitor on any other name is sent to the same page on the public address, keeping the rest of the link (for example
?territory=UK). It's a permanent redirect (HTTP 308), which search engines read as "this page has moved".It covers pages, search, file downloads and the AI feeds.
The editor and sign-in are never sent to the public address: if an admin reaches the editor through an internal name, it keeps working there. If you use a separate editor address, they're sent to that instead.
Requests to
localhostor an IP address are never redirected, so health checks from a load balancer or container platform keep working.
Switching it on and off
Set the public address first.
Open Customer site › Domain on the public address (or on the separate editor address, if you use one). You can only switch it on from there: that proves the public address works before other names are sent to it.
Under Send other addresses to the public address, click Switch on and confirm.
System › Health then shows where other addresses go under Other addresses. While the switch is on, the public address can't be changed: switch it off, change the address, then switch it on again from the new address.
Switch off on the same screen turns it off. Because the redirect is permanent, browsers that already followed it may keep going to the public address for a while; that still works, so nobody is stranded.
On the server, HAIMDALL_REDIRECT_TO_PUBLIC_URL=1 in .env switches it on (and 0 off), taking priority over the screen. The domain-reset tool above also switches it off.
Search engines: sitemap.xml and robots.txt
HAIMDALL publishes the two files search engines look for, at the top of your public address. There's nothing to switch on: they follow your content and settings automatically.
/sitemap.xmllists your help site's home page and every published article, in every language it's published in, with the date it was last published. Translations of the same article are linked to each other, so search engines show readers the version in their own language. It lists the current product version only (the/latest/…addresses): older versions either point search engines at the current one or are hidden from them. It leaves out reusable templates, deleted articles, and articles limited to territories other than your default one, because the address in the sitemap would only show those readers a "choose your territory" message./robots.txtpoints search engines at the sitemap, and keeps them out of the editor, sign-in, Preview and HAIMDALL's APIs (images in articles can still be indexed).
Both use your public address, so set that first (see Set the public address above). When the help site is closed, robots.txt tells search engines to stay away from everything, and the sitemap isn't available. On a separate editor address, robots.txt always asks search engines to stay away.
To get your help site indexed sooner, add the sitemap's address (for example https://help.example.com/sitemap.xml) to Google Search Console and Bing Webmaster Tools once the site is open. They'll then check it for new and changed articles by themselves.