---
title: "Configure Server FQDN in Polarity Server v5"
slug: "polarity-configure-the-server-fqdn"
description: "Set up the fully qualified domain name (FQDN) for your Polarity Server v5 deployment. Learn how to configure hostname and domain settings for proper SSL certificates, user access, and network connectivity in your annotation platform."
updated: 2024-12-23T21:27:03Z
published: 2024-12-23T21:27:03Z
canonical: "knowledge.threatconnect.com/polarity-configure-the-server-fqdn"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://knowledge.threatconnect.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure the Server 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 (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.

```actionscript
POLARITY_HOSTNAME=your.fqdn.com
POLARITY_WEB_HOSTNAME=your.fqdn.com
```

Save the change and close the file.

Restart the Polarity Server containers:

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

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