Custom AppSettings example
This is an example file showing how to override the ports and paths used by MariaServiceHoster, plus a few other settings. Save it as
{
// In GlobalDefinitions one can override the values defined in
// appSettings.json or add new ones that can be referenced by other
// values in this file (e.g. "[MyCustomValue]").
"GlobalDefinitions": {
// Disable the GeoFencing service.
"GeoFencingDisabled": true,
},
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://0.0.0.0:5310"
},
"Grpc": {
"Url": "http://0.0.0.0:5311"
},
// "HttpsAndGrpcHttps": {
// "Url": "https://0.0.0.0:5312"
// }
}
},
"HostedServices": {
"GeoObjectStore": {
"AutoEndpoints": {
"Endpoints": ["Http:5295","Https:5296","Grpc:5297"]
},
"Settings": {
// "StorePath" is the folder where the service's geo store files
// (i.e. SQLite files) can be found. Environment variables such as
// %prgramdata% are expanded in all paths.
"StorePath": "%programdata%\\TeleplanGlobe\\MariaServiceHoster\\GeoObjectStore"
},
},
"GeoFencing": {
"AutoEndpoints": {
"Endpoints": ["Http:5298","Https:5299"]
},
"Settings": {
"TrackServiceSettings": {
"TrackServiceUri": "http://localhost:9008/tracks",
"List": "ais.test",
"DataSourceId": "0f368b04-87be-4a3d-8c88-2655a8e4f503",
},
},
},
"GeoObjectTiles": {
"AutoEndpoints": {
"Endpoints": ["Http:5300","Https:5301"]
},
"Settings": {
// "GeoObjectStoreUri" must point to a GRPC endpoint. HTTP won't work.
"GeoObjectStoreUri": "http://localhost:5311/geostore",
"SymbolPointServiceUri": "http://localhost:9008/symbolpoint",
"StyleXmlPath": "C:/MariaGeoData/Styles",
},
},
"MariaGeoServer": {
"AutoEndpoints": {
"Endpoints": ["Http:5302","Https:5303"]
},
"Settings": {
"MercatorTilesPath": "c:/MariaGeoData/MercatorTiles",
"MapPath": "C:/MariaGeoData/Maps",
},
},
"ReferenceService": {
"AutoEndpoints": {
"Endpoints": ["Http:5304","Grpc:5305"]
},
},
"RasterMapServer": {
"Settings": {
"MapCatalogUri": "http://localhost:5310/catalog"
},
}
}
}