# Mirroring Sites

Qommentary Mirroring architecture allows you to mirrow a Qommentary environment across multiple Qlik Sense sites. This way, commentary data can be shared and managed across all sites from any location.

In this type of architecture, there is a Central Node which acts as the single source of truth, and mirroring environments which communicate with the Central Node.

If you would like to mirror a Qommentary enviroment, please follow these steps:

## Mirror Node Setup

### Installation

1\. Launch **Qommentary Setup Wizard**

2\. Under Database section, uncheck "Install database server"

3\. Enter **Central Node** database details and test connection

4\. Continue installation as per [Installation guide](https://knowledgebase.qommentary.com/getting-started/installation)

### Qlik Client Certificate

1\. Navigate to *QMC > Certificates* in **Central Node**

2\. Export certificates (include secret key)

3\. Copy certificates to **Mirrow Node**

4\. Install **client.pfx** certificate under *Local Computer > Personal* store

4\. Rename QlikClient friendly name to **QlikClient\_CentralNode**

### &#x20;Configuration

1\. Navigate to Qommentary installation location

2\. Open **Qommentary Engine** folder

3\. Edit **appsettings.json** with your favourite text editor

4\. Add the following code snippet to the root node:

```
"IsMirroringEnabled": true, 
"Mirroring": {
      "CentralNode": { 
            "Url": "https://<central-node-hostname>", 
            "CertificateFriendlyName": "<QlikClient_CentralNode_CertificateFriendlyName>" 
      }
} 
```

Your **appsettings.json** should now look like this:

![](https://409486811-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M43RhGzV8Plu0tfknia%2F-MLqG4nRr2rBUHcKBb0o%2F-MLqJoi5Ooe-mVC5zl8V%2Fimage.png?alt=media\&token=662820dd-6f87-460b-9a73-2fc020fe1c51)
