{
  "$id": "https://docs.xentara.io/xentara/schema-xentara-config.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Xentara Licence Server Config File",
  "description": "The root of the Xentara licence server config file",
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string",
      "format": "uri"
    },
    "port": {
      "title": "Port Number",
      "description": "The TCP port number of the licence server. Can be omitted to use the default port (39344).",
      "type": "integer",
      "minimum": 1,
      "default": 39344,
      "maximum": 65535
    },
    "serverCertificate": {
      "title": "Server Certificate",
      "description": "Server certificate paths for TLS connections. Can be omitted to use the default paths.",
      "type": "object",
      "properties": {
        "certificatePath": {
          "title": "Certificate Path",
          "description": "The relative or absolute path to the TLS server certificate.",
          "type": "string",
          "minLength": 1
        },
        "privateKeyPath": {
          "title": "Private Key Path",
          "description": "The relative or absolute path to the private key file belonging to the TLS server certificate.",
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "certificatePath",
        "privateKeyPath"
      ],
      "unevaluatedProperties": false
    },
    "additionalProperties": false
  },
  "unevaluatedProperties": false
}
