External Server URL

The external server URL is the address under which devices, users and connected services reach the Relution server from outside. Relution uses it to build enrollment links, MDM profiles and links in emails. System administrators maintain it in the Global organization under Settings → System Configuration → General Configuration.


External Server URL

The external server URL applies to the entire server and all organizations.

FieldDescriptionDefault
External Server URLAddress of the Relution server, e.g. https://mdm.example.com. Mandatory field that cannot be emptied once it has been saved.Value of externalURL from the application.yml

Relution uses the URL for, among other things:

  • enrollment links and QR codes
  • MDM profiles and the ongoing communication of devices with the server, e.g. check-in and certificate requests via SCEP
  • Automated Device Enrollment profiles (ADE, DEP in the portal) and Windows enrollment
  • links to the portal in emails, unless a scope-specific URL is set

Changing the URL

A changed URL applies to all new enrollments. Devices that are already enrolled continue to use the old URL; on Apple devices, for example, it is stored in the installed MDM profile. To keep these devices reachable, the DNS record, reverse proxy rule and certificate of the old URL remain in place until all devices have been re-enrolled.

If only the portal is to be reachable under a different domain, the external server URL remains unchanged. Instead, the portal domain is set as a scope-specific URL.

Interaction with the application.yml

As long as no URL has been saved in the portal, Relution takes the value of externalURL from the application.yml and saves it as the external server URL. From then on, only the value in the portal applies: a later change of externalURL in the application.yml no longer has any effect. After installation, the URL is therefore only changed in the portal.


Scope-specific External Server URLs

If the reverse proxy exposes an API scope under its own host name, the external server URL for that scope is overridden here. Currently, the management scope is supported, i.e. the Relution portal and the management API. The setting is available as of Relution 26.5.

FieldDescriptionDefault
management scopeAddress under which the portal is reachable, e.g. https://portal.example.com. Emptying the field removes the setting again.– (the External Server URL applies)

The URL for the management scope is used for links to the portal in emails, for example in user invitations, password resets, app requests and notifications. Enrollment links, MDM profiles and device communication continue to use the External Server URL. There is no entry for this setting in the application.yml.

Extend the reverse proxy

Before the URL is set, the reverse proxy is configured to accept requests for the portal domain in addition to the existing domain and to forward them to the same Relution server. This requires a DNS record for the portal domain and a certificate covering it. With Let’s Encrypt, the domain must be publicly resolvable and port 80 of the proxy must be reachable from outside; otherwise a static certificate is used.

The examples are based on the files of the Docker (Recommended) → installation and use the placeholders mdm.example.com for device communication and portal.example.com for the portal.

Traefik

In the file /opt/relution/configs/traefik/relution.yaml, add the portal domain to the rule of the relution router:

relution.yaml
http:
  routers:
    relution:
      rule: Host(`mdm.example.com`) || Host(`portal.example.com`)
      entryPoints:
        - websecure
      tls:
        certResolver: letsencrypt
      service: relution

  services:
    relution:
      loadBalancer:
        servers:
          - url: "http://relution:8080"

Traefik reads the host names from the rule and requests a certificate from Let’s Encrypt that contains both domains. With static certificates (relution.static_cert.yaml), the rule is extended in the same way; the certificate at /opt/relution/certs/static/server.pem must then contain both domains as Subject Alternative Names (SAN).

nginx

In the file relution-nginx.conf, add the portal domain to server_name in both server blocks (port 80 and port 443):

relution-nginx.conf
server {
    listen 0.0.0.0:80 default_server;
    listen [::]:80;
    server_name mdm.example.com portal.example.com;
    ...
}

server {
    listen 0.0.0.0:443 ssl default_server;
    listen [::]:443 ssl;
    server_name mdm.example.com portal.example.com;
    ...
}

The certificate at /opt/relution/server.pem must contain both domains as SAN. Then restart nginx:

docker compose restart nginx

After this change, both domains lead to the same portal and the same interfaces. If administration is to be reachable via the portal domain only, the management API is additionally separated from device communication at the proxy, see API Scope Separation →.

Set the portal URL

The portal URL is set in three steps:

  1. In the Global organization, open Settings → System Configuration → General Configuration.
  2. In the Scope-specific External Server URLs section, enter the portal URL in the management scope field, e.g. https://portal.example.com.
  3. Click Save.

To verify the setting, create a new user invitation: the link in the invitation email starts with the portal domain, e.g. https://portal.example.com/#/invitation?…. Emails that have already been sent keep their original link.


Validation when saving

Both fields are normalized and validated in the same way when saving:

  • http:// is replaced with https://; a missing https:// is added.
  • Path and parameters are removed, e.g. https://portal.example.com/relution becomes https://portal.example.com.
  • A port is kept, e.g. https://portal.example.com:8443.

Valid top-level domain

The host name must end with a top-level domain listed in the official IANA list, e.g. .de, .com or .eu. Otherwise, saving is rejected with the message “The provided URL is invalid”.

Rejected values include:

  • host names with an incomplete domain, e.g. portal.mdm.example instead of portal.mdm.example.de
  • internal suffixes such as .local, .lan, .intern or .corp
  • host names without a dot, e.g. portal

The check only covers the syntax; no DNS lookup takes place. If a domain only exists in an internal DNS zone, use a subdomain of a public domain for it, e.g. portal.intern.example.de, which is resolved internally (split DNS).


Special notes

If the Enable organization specific subdomains setting is switched on, Relution adds a subdomain per organization to the host name in organization-related links, e.g. school1.mdm.example.com. This also applies to the URL of the management scope, e.g. school1.portal.example.com. DNS records, reverse proxy and certificate must cover these subdomains, for example via a wildcard entry *.portal.example.com.


How helpful was this article?