Loading the documentation…
Two addresses need certificates. The DataMind OS gateway holds its own: you give it during the first install, or later in Configuration. Your reverse proxy holds the one for the DataMind Installer.
The first step of Configure Platform asks How will people reach DataMind OS? and offers two
cards. Clicking a card opens its next page; the step has no Next button.
| Card | What it says | What comes next |
|---|---|---|
| HTTPS, marked Recommended | Encrypted. | The domain and its certificate, then the checks |
| HTTP | Not encrypted. | The server address |
Without a domain or a certificate yet, choose HTTP. If you already chose HTTPS, Back returns to the two cards; nothing from the HTTPS pages is saved until you click Finish there.
The whole first install, with the License Key on the same step, is on Install in depth. Until you start the installation, Change how DataMind OS is reached, under the saved address, takes you back to this choice.
datamind. example. com. The line under the field shows the
address people will open, https:/ / <domain>, and reminds you that its DNS record must point at
this server. A pasted address is cut down to its host name.. pem, . crt, . cer, . key) of up to 64 KB. The
certificate file holds the server certificate first, then its intermediate certificates, and
the private key must not have a password./, such as
/ etc/ ssl/ datamind/ fullchain. pem. DataMind OS reads the files from there, so leave them in
place. Upload the files instead switches back.When you opened the Installer over plain http:/ at an address other than localhost, the
upload shows: "This page is not encrypted, so an uploaded private key would cross the network in
clear text. To keep it off the network, copy the files to the server (for example with scp) and use
file paths on the server instead."
Finish runs the checks once more. If one fails now, it stops with
HTTPS was not set up.. Otherwise it saves PLATFORM_URL as
https:/, and SSL_CERT_PATH and SSL_KEY_PATH:
| You gave | SSL_CERT_PATH and SSL_KEY_PATH name |
|---|---|
| Uploaded files | deployment/ and deployment/ in the install directory, where the Installer writes your certificates and your private key. A private key inside the certificate file is not copied |
| File paths | The paths you entered |
Finishing with file paths, or with HTTP, deletes files uploaded before.
http:/ / 10. 0. 0. 5. Change it if people reach this server another way. An address without a
scheme gains http:/ /.The address must be an http:/ address without a path, and without a port other than 80:
DataMind OS answers on port 80.
Finish saves it as PLATFORM_URL, empties SSL_CERT_PATH and SSL_KEY_PATH, and deletes a
certificate and key uploaded before.
The checks run on Next, on Run again and once more on Finish, and save nothing. Each row
shows its result, passed, warning, failed or not checked, then what was found and, when there is
something to change, a What to do: line. Finish stays off while a check has failed; warnings
never block it. The line under the list reads:
Every check passed. Finish saves the domain and the certificate.Nothing failed. Read the warnings, then finish.Fix what failed, then run the checks again. Back lets you change the domain or the certificate.| Check | Fails when | Warns when |
|---|---|---|
| Domain name resolves | The domain has no DNS record or no A or AAAA record, the server's DNS servers do not answer, or it resolves to a loopback address such as 127. | It resolves on this server only through the server's own settings (its hosts file or a search domain), not through its DNS servers |
| Domain points at this server | It leads to a different DataMind Installer. Not checked while the DNS check fails | It also resolves to addresses that are not this server's, or the Installer could not confirm that it leads here |
| Certificate files are readable on the server | With file paths only: a file does not exist on this server, is a folder, a pipe or a device, cannot be read, is empty, is larger than 64 KB, or could not be read in time | Never |
| Certificate and key are PEM files | A file is binary (DER), the certificate file holds a signing request (CSR), the two files are swapped, the key is a public key, has a password or is in OpenSSH format, or the key is Ed25519, Ed448, DSA or RSA-PSS, which browsers cannot use | An RSA key is shorter than 2048 bits, or, with file paths, the certificate file also holds the private key |
| Certificate covers the domain | The certificate was not issued for the domain, or the first certificate in the file is a certificate authority instead of the server certificate | Never |
| Certificate is within its validity dates | It is not valid yet, or it has expired | It expires within 30 days |
| Private key matches the certificate | The key belongs to another certificate, or to one later in the file | Never |
| Certificate chain reaches a trusted root | An intermediate certificate is missing, or one in the chain has expired | The certificate is self-signed, or the chain ends at a private certificate authority: browsers then trust it only on computers where it was installed as trusted |
When a check fails, its What to do: line names the fix, with the openssl command for a binary
file, a password-protected key or a . or . file. A wildcard certificate such as
*. covers datamind., one level down only.
How the Installer tells that the domain leads here. It calls itself through the domain on its
own port, <domain>:8000, and it compares the addresses the domain resolves to with the server's
network addresses and with the address you opened the Installer with. When the call does not reach
it and none of the addresses is this server's, for example behind NAT, a load balancer or a firewall
that blocks port 8000, the check warns that the domain is not confirmed. Then make sure ports 80 and
443 of the domain reach this server.
How it reads files given as paths. It starts a short-lived container named
datamind-installer-check-<id> from its own image, with only that file mounted read-only and no
network, and removes it when the read ends or after 20 seconds. Paths are case-sensitive and name
files on the server, not on your own computer.
After the install, change the certificate in Configuration. Configuration does not run the HTTPS checks.
The DataMind OS gateway (Openresty in the Services panel) picks its mode when its container starts:
| The gateway finds | It serves | Its log line |
|---|---|---|
Non-empty cert. and key. in / | HTTPS | [openresty] SSL certs detected - HTTPS enabled |
| Either file missing or empty | HTTP | [openresty] No SSL certs - HTTP only |
SSL_CERT_PATH and SSL_KEY_PATH to
the absolute paths of the certificate and key files on the host. The key row is required once the
certificate row has a value.Check it worked.
docker ps --format '{{.Names}}' | grep -i openresty
docker logs <gateway-container> 2>&1 | grep '\[openresty\]'[openresty] SSL certs detected - HTTPS enabled
Then open the platform address in a browser and check the certificate's issuer and expiry date.
The setup saves the address from your choice: https:/ for HTTPS, the http:/ server
address for HTTP. You can change it later as PLATFORM_URL in
Configuration. There the Installer normalises the value before
it saves it, so a bare address is accepted and the saved value always carries a scheme.
| You type | The Installer saves |
|---|---|
An address with http:/ or https:/ | Kept as typed, without trailing slashes |
A domain name without a scheme, such as data. | https:/ |
localhost, a *. or *. name, or an IP address, without a scheme | http:/ plus the address |
Any other scheme, such as ftp:/ | Nothing. It answers PLATFORM_URL must be an http:/ |
| An empty value | Nothing. It answers PLATFORM_URL cannot be empty |
| A value that is not an address | Nothing. It answers PLATFORM_URL is not a valid address: "<value>" |
To serve DataMind OS over HTTPS on an IP address, type https:/ yourself in PLATFORM_URL and set
the certificate rows; the setup's HTTPS card needs a domain name.
The saved value is the root of every address the deployment derives, so set it to the address your users type.
The Installer serves HTTP on port 8000. Terminate TLS in your reverse proxy or load balancer, then
allow only the proxy through, as Restrict the port
shows.
| Your proxy must | Because |
|---|---|
Send X-Forwarded-Proto: https | The Installer marks its session cookies Secure only on HTTPS requests or with this header set to https |
Pass the browser's original Host header | The Installer derives the cookie domain from Host. See Sign-in loops behind a proxy |
Rate-limit POST / | Protects the sign-in endpoint against password guessing |
| Turn response buffering off | Job and service logs stream as server-sent events. With buffering they arrive in bursts |
Opened through your proxy over https:/, the setup's upload no longer shows the warning about an
unencrypted page.
When the browser's Origin host differs from the Host the Installer sees, or is missing, the
Installer sets the cookie domain to the last two labels of Host. This happens when your proxy rewrites
Host to its upstream address. While Origin and Host match, no domain is set:
Host the Installer sees | Cookie domain | Result |
|---|---|---|
installer., passed through unchanged | None | Works |
127., rewritten to the upstream | . | Rejected by the browser |
10., rewritten to the upstream | . | Rejected by the browser |
A rejected cookie means the password is accepted and you land back on the sign-in screen. Pass the
original Host through, so Origin and Host match and no domain is set. The session rules behind
both cookies are on Sign in, sessions and account.
Check it worked. Sign in through the proxy and open the browser's developer tools. Both session cookies show Secure and HttpOnly, and no domain other than the host you typed.
Not in the setup. The HTTPS card needs a domain name and refuses an IP address with
Enter a domain name, not an IP address.. Choose
HTTP for an IP address. After the install, you can still type an https:/ IP address in
PLATFORM_URL and set the certificate rows in Configuration.
A check failed, or was not checked because a check it needs failed. Read its What to do: line,
fix the record or the files, and click Run again. Back lets you change the domain or the
certificate. Warnings never keep Finish off.
Yes. It is a warning. The Installer could not reach itself through <domain>:8000, and the
domain resolves to none of this server's addresses, which is expected behind NAT, a load balancer or a
firewall that blocks that port. Make sure ports 80 and 443 of the domain reach this server. Only a
domain that leads to a different DataMind Installer fails.
Yes, with a warning. No certificate authority vouches for it, so browsers trust it only on computers where it was installed as trusted. Fine for an internal deployment: make sure every computer that opens DataMind OS trusts it, or use a certificate from a certificate authority. A chain that ends at your organisation's own root is treated the same way.
The gateway did not find both files. It logs [openresty] No SSL certs - HTTP only. Check
SSL_CERT_PATH and SSL_KEY_PATH in Configuration and point
them at the real files, then click Apply changes. If only the file contents changed, restart the
gateway.
The browser rejected the session cookie. Your proxy rewrites Host, so the Installer sets a domain
such as .. Pass the original Host header through, as
Sign-in loops behind a proxy describes.
http:/ / in front of the address?No. In the setup's HTTP step, an address without a scheme gains http:/. In Configuration,
localhost, *. names and IP addresses are saved with http:/, other hostnames with
https:/, and trailing slashes are stripped. A scheme you type is kept.
The certificate and its matching private key, as absolute paths on the host. The rows show example
paths from a Let's Encrypt setup (/ and
/); point them at the files your certificate authority
gives you. Files you uploaded during setup sit at deployment/ and
deployment/ in the install directory.
Once SSL_CERT_PATH is set, SSL_KEY_PATH is required. The next install, Start, Update or Apply
changes stops with Missing required configurations: <codes>, naming the missing row, for example
SSL_KEY_PATH. Set both paths to continue.
Restart the gateway. It reads its certificate files when its container starts, so after you replace them, restart it from Service status: hover Openresty in the Services panel and click its restart button. If the renewed files live at new paths, set the new paths in Configuration and click Apply changes instead.
No. It serves HTTP on port 8000, so terminate TLS in your reverse proxy or load balancer. The
DataMind OS gateway keeps its own certificate.
Response buffering. Job output and service logs arrive as server-sent events, and a buffering proxy holds them back until a buffer fills. Turn response buffering off for the Installer's address.