Configuring a FQDN

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 for your server matches the server hostname. 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 .env file in an editor.

vi /app/.env

Find the variable(s) POLARITY_HOSTNAME and then set them to the fully qualified domain name (FQDN) of your Polarity server (you can also set this to an IP address):

POLARITY_HOSTNAME=your.fqdn.com

Save the change and restart the server:

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

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

Last updated