Configure the Server FQDN
  • 23 Dec 2024
  • 1 Minute to read
  • Dark
    Light

Configure the Server FQDN

  • Dark
    Light

Article summary

Set the server's FQDN if the hostname does not match.

Update FQDN in Polarity Config

By default the Polarity Server will assume the FQDN (fully qualified domain name) for your server matches the hostname set on it.  If this is not the case, you will need to modify the Polarity Server environment file to set the appropriate hostname.

To modify the Polarity server environment file begin by opening the /app/.env file for editing.

Find the variables POLARITY_HOSTNAME and POLARITY_WEB_HOSTNAME.  Set these to the FQDN of your Polarity Server.  This can also set this to an IP address.

POLARITY_HOSTNAME=your.fqdn.com
POLARITY_WEB_HOSTNAME=your.fqdn.com

Save the change and close the file.

Restart the Polarity Server containers:

cd /app && ./down.sh && ./up.sh

Your FQDN should now be set, which will ensure that all REST API generated links are correct.


Was this article helpful?