Zum Hauptinhalt springen

Configuration

summary

After reading this, you can configure the system parameters of your Middleware instance.

Introduction

caution

This chapter is about locally deployed .NET Middleware setups (Windows or Mono on Unix). Other deployment types (e.g., Android, BYODC, hosted Middleware) may have significantly different layouts and requirements.

The Middleware uses two types of configurations. One is for the actual CashBox instance running; the other defines the Middleware's general runtime settings. For information about the former, read the chapter CashBox. Read this chapter for information about the latter.

The Configuration File

When the Middleware starts, the Launcher will try to find the file fiskaltrust.exe.config in its directory and loads its configuration from there.

The file contains a standard XML document with a configuration / [appSettings | startup | runtime] hierarchy; though, to configure the Middleware, we are solely focusing on the appSettings section. Please leave the other sections and their values untouched.

Each parameter is represented by an <add> tag beneath <appSettings>, which holds two attributes (key and value) indicating the relevant parameter and its value. The following example would configure the Middleware to run as production CashBox.

<appSettings>

<add key="sandbox" value="false" />

</appSettings>
xml validation

After making manual changes, it is always a good idea to validate the XML syntax of your file. You can do so with the following PowerShell snippet. The file should be syntactically valid if it does not report any error messages.

[xml](Get-Content fiskaltrust.exe.config)

Alternatively, you can also use an online validation service, such as jsonformatter.org.

Parameters

The following table contains the list of all currently supported configuration parameters.

ParameterDescriptionExample Value
accesstokenThe access token of the CashBox.McWDtOcxxN
cashboxidThe ID of the CashBox the Launcher should start.00000000-0000-0000-0000-000000000000
connectionretryThe number of times the Middleware will attempt to fetch its configuration from the portal.1
connectiontimeoutThe timeout (in seconds), after which the Middleware will abort.15
logfileFull path to log file. Please Logging for details.D:\logs\fiskaltrust.log
packagesurlAn alternative download URL for the fiskaltrust package service.https://packages.fiskaltrust.cloud
proxyConnection details for a possible proxy connection. Please see Proxy setups for details.address=10.0.0.0
sandboxBoolean flag indicating whether the Middleware uses the sandbox environment.false
servicefolderFull path to the Middleware's data directory.D:\data\fiskaltrust
sslvalidationBoolean flag indicating whether the Middleware validates SSL certificates.true
useofflineBoolean flag indicating whether the Middleware should not attempt any network communication.
Please be careful with this setting; enabling it will stop all online services.
false
Following parameters are only available with version 1.3 of the Launcher on the German market
scutimeoutThe timeout (in seconds), after which the queue will abort requests to the SCU.75
telemetry-optoutflag indicating whether the Middleware should disable telemetry.false
verbosityThe level of logging the Middleware should use. Please Logging for details.information

Changing parameters with the Launcher

In addition to manually editing the configuration file fiskaltrust.exe.config, you can set parameters via the Launcher. Please see the chapter Launcher for more details on how to do that.