Skip to main content
Version: 6.12

Patriot Configuration Files

Each of the Patriot component programs has its own configuration file containing application and system settings.

The files are located inside the Patriot install directory for each component, e.g. C:\Program Files (x86)\Patriot Systems Ltd\Patriot Data Service\AppSettings.json

The following headers in this document correspond to sub-sections in the corresponding config files.

The configuration system applies sensible defaults for all of these values. Only settings that you wish to change from the default values need to be included in the config file.

These settings must be put inside the root 'DataService'/'TaskService' section. For example:

{
"DataService": {
"SqlConnection": {
// sql connection settings (see below)
}
}
}

Note: the following types 'string' and 'boolean' refer to text and true/false respectively, both of which should be wrapped in quotation marks.

Data Service Configuration

SqlConnection

Controls how Patriot connects to SQL Server.

PropertyTypeDescription
ServerNamestringName of the SQL Server to connect to.
IntegratedSecuritybooleanIndicates whether or not to use Windows Authentication to authenticate to SQL.
UserNamestringUsername to authenticate to SQL. Ignored if 'IntegratedSecurity' is true.
PasswordstringPassword to authenticate to SQL. Ignored if 'IntegratedSecurity' is true.
MaxPoolSizenumberMaximum size of the SQL Connection pool. Must be at least 100.
FailoverFailover OptionsSQL Failover options.

Failover Options

PropertyTypeDescription
FailoverPartnerstringName of the secondary / failover SQL server, when using SQL Mirroring.
MultiSubnetFailoverbooleanIndicates if the failover crosses multiple network subnets. Improves recovery time during cluster failover.

Api

Settings relating to the Patriot REST / Web API. This is typically configured during ICA setup using the Utilities Program. Learn more.

PropertyTypeDescription
PortnumberTCP Port where Patriot will listen for API requests.
TokenSigningKeystringThe Base64-encoded token signing key used to issue API tokens.
TokenTimeoutTimeSpanThe amount of time that issued API tokens will be valid for, in HH:MM:SS (e.g. 00:01:30 ).
TokenIdleTimeoutTimeSpanThe amount of time that unused/idle API tokens will be valid for, in HH:MM:SS (e.g. 00:01:00 ).

JsonSdk

Settings relating to the legacy Patriot JSON API. Learn more.

PropertyTypeDescription
EnabledbooleanEnables the legacy JSON api.
PortnumberTCP Port where Patriot will listen for API requests.
EncryptedbooleanEnables encryption.
UserNamestringValid username required to authenticate requests.
PasswordstringValid password required to authenticate requests.

WcfApi

Settings relating to the internal Patriot WCF API, used by the Task Service and Desktop Client to connect.

PropertyTypeDescription
PortnumberTCP Port where Patriot will listen for API requests.
EncryptedbooleanEnables encryption and authentication.

StorageDirectories

Storage directory location configuration settings. Learn more.

PropertyTypeDescription
LocalStorageDirectorystringLocal Storage directory where the service stores local files not stored in the database.

Archiving

Settings relating to archiving of old data to reduce storage requirements. Learn more.

PropertyTypeDescription
EnabledbooleanIndicates if archive database is enabled.
SignalArchivingRateLimitnumberThe maximum expected average signal logging rate per client per day. In rare cases this may need to be increased via the dataservice config file.

Ulc

Settings relating to ULC compliance.

PropertyTypeDescription
SerialNostringULC Serial Number.

Task Service Configuration

ConnectionSettings

Data service details (server, port, encryption settings).

PropertyTypeDescription
ServerNamestringName of the SQL server to connect to.
ServerPortnumberPort of the SQL server to connect to.
EncryptionEnabledbooleanIndicated whether or not encryption is enabled.
AlternateAuthenticationAlternate Authentication OptionsIgnored unless 'Encryption' setting is enabled.

Alternate Authentication Options

These settings are ignored unless the 'Encryption' setting is enabled. Learn more.

PropertyTypeDescription
EnabledbooleanIndicates whether alternate authentication is enabled.
DomainstringDomain used for alternate authentication.
UserstringValid user required to authenticate requests.
PasswordstringValid password required to authenticate requests.

BackupConnectionSettings

Alternative addresses to connect to data service. Learn more.

PropertyTypeDescription
AutomaticFailOverbooleanIndicates whether automatic failover is enabled.
BackupServerNamestringName of the backup / failover SQL server.
AutomaticFailBackTimeTimeSpanTimespan determining when to swap to backup server, in HH:MM:SS (e.g. 00:02:00 ).
AlternatePrimary1Endpoint OptionsFirst alternate primary database server.
AlternatePrimary2Endpoint OptionsSecond alternate primary database server.
AlternateBackup1Endpoint OptionsFirst alternate backup database server.
AlternateBackup1Endpoint OptionsSecond alternate backup database server.

Endpoint Options

PropertyTypeDescription
AddressstringHostname or IP address e.g. patriotserver or 192.168.1.100.
PortnumberIP Port number.

StorageDirectories

Local storage directory where the task service stores its files.

PropertyTypeDescription
LocalStorageDirectorystringPath to the directory.

OpenTelemetry

Settings for exporting system statistics. Learn more.

PropertyTypeDescription
SendMetricsbooleanIndicates whether or not metrics should be sent.
EndpointUriDestination server to which the exporter is going to send telemetry.
ProtocolOtlpExportProtocolSupported: Grpc (default) or HttpProtobuf.
HeadersstringOptional headers to include in request (eg. api key).
TimeoutMillisecondsnumberThe max waiting time (in milliseconds) for the backend to process each batch. Defaults to 10,000ms.