> For the complete documentation index, see [llms.txt](https://za.docs.rechtlogisch.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://za.docs.rechtlogisch.de/beta/setup/settings.md).

# Settings

The following environment variables should be changed in the `.env` file before going live to production.&#x20;

{% hint style="info" %}
A starting point example is placed in the [Examples](/beta/setup/examples.md) section
{% endhint %}

## Mandatory

### APP\_ENV

{% hint style="danger" %}
DANGER ZONE

Changing this environment variable has an impact on the delivery of the data to the tax authorities.
{% endhint %}

Until the productive completion, the solution should be operated in `development` (set by default).

{% code title=".env" %}

```yaml
APP_ENV=development
```

{% endcode %}

When the solution is ready to go productive, `APP_ENV` should be set to `production`.

{% code title=".env" %}

```yaml
APP_ENV=production
```

{% endcode %}

{% hint style="warning" %}
Variable is case sensitive.
{% endhint %}

### DEVELOPER\_ID

Five-digit number which is assigned by ELSTER (cf. [ELSTER Developer-ID](/beta/other/elster-developer-id.md)).

### DEVELOPER\_NAME

Name of the software. Will be printed on the PDF transfer protocols in the lower left corner and will be disclosed on submissions to tax authorities.

### CERTIFICATE\_PIN

PIN for the certificate on the authentification medium.

### DB\_\*

SQL database credentials.

#### DB\_HOST

Host of database server.

#### DB\_DATABASE

Database name. Default: `weric`.

#### DB\_USERNAME

Username for database connection.

#### DB\_PASSWORD

Database connection password.

### FILESYSTEM\_CLOUD

Where should the PDF transfer protocols, retrieved data and ERiC logs be stored. In production it should be `s3` for Amazon AWS S3.

### AWS\_\*

Settings and credentials for storing data in Amazon AWS S3-compatible services.

**AWS\_ACCESS\_KEY\_ID**\
Access key ID generated in [AWS Console](https://console.aws.amazon.com/s3/home) or setup with another S3 storage.

**AWS\_SECRET\_ACCESS\_KEY**\
Secret access key generated in [AWS Console](https://console.aws.amazon.com/s3/home) or setup with another S3 storage.

**AWS\_BUCKET**\
[Bucket name](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html). Default: `weric`.

**AWS\_DEFAULT\_REGION**\
[AWS region](https://docs.aws.amazon.com/general/latest/gr/s3.html) where data stored. Typically and default: `eu-central-1`.

## Optional

### API\_TOKEN

Bearer token to authenticate for API `/v2/` endpoints.

### SENTRY\_LARAVEL\_DSN

Data Source Name für Sentry (Error Monitoring).

{% hint style="info" %}
SENTRY\_DSN is also supported, although deprecated.
{% endhint %}
