Custom AppSettings example

From Maria GDK Wiki
Revision as of 14:00, 30 October 2026 by Jeb (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is an example file that shows how to override the ports and paths used by MariaServiceHoster, plus a few other settings. Save it as appSettings.local.json in the same folder as appSettings.json (the default location is %ProgramData%\TeleplanGlobe\MariaServiceHoster).

{
  // In GlobalDefinitions one can override the values defined in
  // appSettings.json.
  "GlobalDefinitions": {
    // Uncomment the line below to disable the GeoFencing service.
    // "GeoFencingDisabled": true,
  },
  "Kestrel": {
    "Endpoints": {
      "Http": {
        "Url": "http://0.0.0.0:5310"
      },
      "Grpc": {
        "Url": "http://0.0.0.0:5311"
      },
    }
  },
  "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 points to the Maria GDK4 track service.
          "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 points to the Maria GDK4 symbol point service.
        "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",        
      },
    },
  }
}