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

# Configuration

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

```console
# cp /opt/savdid/share/examples/savdid.conf /etc/savdid/
```

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

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

## Protocol directives

<a id="confval-channel.commprotocol.address"></a>

### channel.commprotocol.address

The IP address to listen on. Mutually exclusive with [`channel.commprotocol.socket`](#confval-channel.commprotocol.socket).

<a id="confval-channel.commprotocol.port"></a>

### channel.commprotocol.port

The port to listen on. Mutually exclusive with [`channel.commprotocol.socket`](#confval-channel.commprotocol.socket).

<a id="confval-channel.commprotocol.socket"></a>

### channel.commprotocol.socket

The socket to listen on. In the default configuration this is set to `/var/run/sssp.sock`. Mutually exclusive with [`channel.commprotocol.address`](#confval-channel.commprotocol.address).

<a id="confval-channel.commprotocol.type"></a>

### channel.commprotocol.type

The type should be `UNIX` when using [`channel.commprotocol.socket`](#confval-channel.commprotocol.socket) and `IP` when using [`channel.commprotocol.address`](#confval-channel.commprotocol.address).

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

## Scanner directives

<a id="confval-channel.scanner.enabletft"></a>

### channel.scanner.enabletft

Enables the reporting of the file type of the scanned file.
The valid options are *YES* or *NO*. The default is *NO*.

<a id="confval-channel.scanner.tftreport"></a>

### channel.scanner.tftreport

Specifies whether to report only the first TFT on the top level file, or report all TFTs that are found in sub files.
The valid options are *FIRST* or *ALL*.

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

## Global directives

<a id="confval-user"></a>

### user

The privdrop user

<a id="confval-group"></a>

### group

The privdrop group
