<a id="configuration"></a>

# Configuration

*ctasd* loads the non-reloadable configuration from `/etc/ctasd/ctasd.conf`.
The default configuration file in `/opt/ctasd/share/examples` can normally be used as a base:

```console
$ cp /opt/ctasd/share/examples/ctasd.conf /etc/ctasd/
```

*ctasd-o* loads the non-reloadable configuration from `/etc/ctasd/ctasd-o.conf`.
The default configuration file in `/opt/ctasd/share/examples` can normally be used as a base:

```console
$ cp /opt/ctasd/share/examples/ctasd-o.conf /etc/ctasd/
```

Below are some of the most important settings that can be configured.

<a id="general-directives"></a>

## General directives

<a id="confval-General-OutboundEnabled"></a>

### [General]OutboundEnabled

Should be `0` for *ctasd* and `1` for *ctasd-o*.

<a id="connectivity-directives"></a>

## Connectivity directives

<a id="confval-Connectivity-Server_address"></a>

### [Connectivity]Server_address

Should be `resolver%d.halon.ctmail.com` if you want to use the closest data center or `resolver%d-eu-halon.ctmail.com` if you only want to use EU data centers.

<a id="confval-Connectivity-License_key_code"></a>

### [Connectivity]License_key_code

Should be the license key that was provided by us.

<a id="httpserver-directives"></a>

## HttpServer directives

<a id="confval-HttpServer-BindingAddress"></a>

### [HttpServer]BindingAddress

The IP address to listen on. In the default configuration this is set to `127.0.0.1`.

<a id="confval-HttpServer-Port"></a>

### [HttpServer]Port

The port to listen on. In the default configuration this is set to `8088` for *ctasd* and `8089` for *ctasd-o*.

<a id="security-directives"></a>

## Security directives

<a id="confval-Security-User"></a>

### [Security]User

The privdrop user

<a id="confval-Security-Group"></a>

### [Security]Group

The privdrop group
