Configuration
The service configuration part, of the configuration file, contains all the general configuration-values for the service to operate.
This includes:
- NotificationServiceConfig
- GeoStoreConfig
- GeoSearchConfig
- GeneralLoggerConfig
- baseUrl
- hostUrl
Example
config.json
{
"baseUrl": (optional) "[base path if the service is routed with a different base path. (rcd/ and api/rcd/ will be automatically added and are not part of the base path)]",
"hostUrl": "[Host url of the public side]",
"notificationServiceConfig": {
"url": "https://apps.rescuetrack.com/api/notificationservice/",
"apiKey": "[API-KEY]",
"senderName": "[SenderName for verification SMSs]"
},
"geoStoreConfig": {
"url": "[geostore (with tenant)]",
"apiKey": "[API-KEY]",
"elementPrefix": (optional) "element-id prefix for the geostore-elements"
},
"geoSearchConfig": {
"url": "https://apps.rescuetrack.com/",
"apiKey": "[API-KEY]",
},
"generalLoggerConfig": (optional) {
"ControllerName": "controller",
"LogLevel": "ALL",
"FlushIntervalInSeconds": 30,
"QueueConfig": {
"Enabled": true,
"QueueParameters": {
"TargetLength": 1000,
"MaxLength": 10000
}
},
"SinkLoggerConfigs": [
{
"Type": "ConsoleLogger",
"Enabled": true,
"LogLevel": "INFO",
"LoggerFactory": {
"$type": "Rescuetrack.Logging.Loggers.Sinks.Configs.ConsoleLoggerConfig, Loggers",
"LoggerNameExp": ""
}
},
{
"Type": "FileLogger",
"Enabled": false,
"LogLevel": "INFO",
"LoggerFactory": {
"$type": "Rescuetrack.Logging.Loggers.Sinks.Configs.FileLoggerConfig, Loggers",
"FilePath": "logs.txt",
"numberOfRotationFiles": 3,
"LoggerNameExp": ""
}
}
]
},
"adminConfigs": [
{
"user": "[admin username]",
"password": "[password]",
"formIds": [
"[formId]"
]
},...
],
"forms":[...]
}