> Source: https://docs.cyberelements.io/bastion/4.7/da/Usage/Reference/ConfigurationFiles/

# Configuration files reference

The Mediation Controller and the Edge Gateway keep their configuration in files under `/etc/ipdiva/`, and the Edge Gateway also under `/etc/cleanroom/`. This section describes the files that you can modify, and gives the role of the files managed by the product.

> **Files managed by the product**
>
> A file marked **managed by the product** is written or rewritten by the product itself: by the installation, by the consoles or by a service. Do not modify it: your change would be lost, or would break the operation of the platform.

## Mediation Controller

### Files you can modify

| File | Role |
|---|---|
| [`/etc/ipdiva/care/djangosettings.ini`](https://docs.cyberelements.io/bastion/4.7/da/Usage/Reference/ConfigurationFiles/MediationController/DjangoSettings/) | settings of the web consoles: authorised names, sessions, CSV exports, public API, debug logs |
| [`/etc/ipdiva/care/databasesettings.ini`](https://docs.cyberelements.io/bastion/4.7/da/Usage/Reference/ConfigurationFiles/MediationController/DatabaseSettings/) | connection to the database, managed by the product and documented for clusters and restorations |
| [`/etc/ipdiva/httpd/commonParameters.extra.conf`](https://docs.cyberelements.io/bastion/4.7/da/Usage/Reference/ConfigurationFiles/MediationController/CommonParametersExtra/) | additional Apache directives, created by you |
| [`/etc/ipdiva/httpd/ssl.conf`](https://docs.cyberelements.io/bastion/4.7/da/Usage/Reference/ConfigurationFiles/MediationController/SslConf/) | TLS settings of the Apache web server |
| [`/etc/ipdiva/server/server.xml`](https://docs.cyberelements.io/bastion/4.7/da/Usage/Reference/ConfigurationFiles/MediationController/ServerXml/) | configuration of the server of the Mediation Controller |
| [`/etc/ipdiva/server/remoteServers.xml`](https://docs.cyberelements.io/bastion/4.7/da/Usage/Reference/ConfigurationFiles/MediationController/RemoteServersXml/) | servers of the cluster |
| [`/etc/ipdiva/server/services.xml`](https://docs.cyberelements.io/bastion/4.7/da/Usage/Reference/ConfigurationFiles/MediationController/ServerServicesXml/) | tunnels between the Mediation Controller and the Edge Gateways, including those created by the console |
| [`/etc/ipdiva/server/extraNetFilterRules`](https://docs.cyberelements.io/bastion/4.7/da/Usage/Reference/ConfigurationFiles/MediationController/ExtraNetFilterRules/) | additional rules of the local firewall |
| [`logging.conf`](https://docs.cyberelements.io/bastion/4.7/da/Usage/Reference/ConfigurationFiles/Logging/) (one per service) | log levels of each service |

### Files managed by the product

| Files | Role |
|---|---|
| `pkis/`, `pkisByType/`, `*.pem`, `*.p12`, `secure/secret`, `httpd/password` | certificates, keys and licences: security material, managed by the PKI and the consoles |
| `/etc/ipdiva/care/databases.d/*.ini`, `/etc/ipdiva/care/vault/` | database connections of each organisation, written when an organisation is created and synchronised in a cluster |
| `/etc/ipdiva/httpd/*.conf` other than those listed above | configuration of the Apache web server, including the files generated for each identity provider (`samlconf/`, `cyberelements/`) |
| `/etc/ipdiva/hostmanager/plugins-enabled/` | plugins enabled on the Mediation Controller |

## Edge Gateway

### Files you can modify

| File | Role |
|---|---|
| [`/etc/ipdiva/gateway/gateway.xml`](https://docs.cyberelements.io/bastion/4.7/da/Usage/Reference/ConfigurationFiles/EdgeGateway/GatewayXml/) | configuration of the Edge Gateway, one directory `/etc/ipdiva/gateway-<instance>/` per additional instance |
| [`/etc/ipdiva/gateway/services.xml`](https://docs.cyberelements.io/bastion/4.7/da/Usage/Reference/ConfigurationFiles/EdgeGateway/GatewayServicesXml/) | tunnels between the Edge Gateway and the other nodes: Mediation Controller and other Edge Gateways |
| [`/etc/ipdiva/careserver/careserver.xml`](https://docs.cyberelements.io/bastion/4.7/da/Usage/Reference/ConfigurationFiles/EdgeGateway/CareServerXml/) | configuration of the recording server |
| [`/etc/ipdiva/html5gateway/html5gateway.xml`](https://docs.cyberelements.io/bastion/4.7/da/Usage/Reference/ConfigurationFiles/EdgeGateway/Html5GatewayXml/) | configuration of the HTML5 Gateway |
| [`/etc/ipdiva/cleanroom/xrdprecord.ini`](https://docs.cyberelements.io/bastion/4.7/da/Usage/Reference/ConfigurationFiles/EdgeGateway/XrdpRecord/) | settings of the RDP recorder |
| [`logging.conf`, `logging.ini`](https://docs.cyberelements.io/bastion/4.7/da/Usage/Reference/ConfigurationFiles/Logging/) (one per service) | log levels of each service |

### Files managed by the product

| Files | Role |
|---|---|
| `/etc/cleanroom/` | configuration of the RDP server (xrdp) adapted by the product, including its keyboard maps `xrdp/km-*.ini` |
| `/etc/ipdiva/gw-controller/` | configuration of the Edge Gateway controller and of its modules |
| `/etc/ipdiva/vpnNg/` | VPN configuration |
| `*.pem`, `*.p12`, `*.lic`, `*.keytab` | certificates, keys, licences and keytabs: security material |

## Upgrade

The configuration files are kept on upgrade. When you have modified one of them, the upgrade asks whether to keep your version or to install the new one; the version not chosen stays next to it, with the extension `.dpkg-old` (your former version) or `.dpkg-dist` (the new version).
