{
  "$id": "https://r3ply.com/schemas/v0.0.1/config/signet.v0.0.1.json",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$anchor": "signet",
  "title": "Site information",
  "description": "Requires a separate entry for each `site` x `r3ply` (and `issued`) combination.",
  "type": "object",
  "required": [
    "domain",
    "r3ply",
    "signet",
    "issued"
  ],
  "properties": {
    "domain": {
      "title": "Site domain",
      "description": "The domain that this configuration applies to. Hostname only.",
      "type": "string",
      "format": "hostname"
    },
    "r3ply": {
      "title": "r3ply domain",
      "description": "The r3ply app to receive comments from. Hostname only.",
      "type": "string",
      "format": "hostname"
    },
    "signet": {
      "title": "Signet data",
      "description": "The r3ply-issued signet key.",
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{22}$",
      "examples": [
        "qhQ6YSUvQNLb1lCdw3kDRg"
      ],
      "$comment": "See docs/overview#sites-signets."
    },
    "issued": {
      "title": "Issue date (of signet)",
      "description": "Used as a key identifier, e.g. for signet rotations and versioning of signet key.",
      "type": "string",
      "format": "date",
      "examples": [
        "2025-08-22"
      ]
    },
    "label": {
      "title": "Site label",
      "description": "A human readable label of a site. Useful for filtering further downstream.",
      "$comment": "See also `filter*`.",
      "type": "string",
      "pattern": "^[\\s\\S]+$",
      "maxLength": 256,
      "examples": [
        "test",
        "test #1",
        "production",
        "website"
      ]
    },
    "extra": {
      "$ref": "https://r3ply.com/schemas/v0.0.1/config/extra.v0.0.1.json"
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "domain": "site.local.test",
      "r3ply": "cli.r3ply.test",
      "signet": "J9cDuB3tBit3WDGQmvbCIw",
      "issued": "2025-08-20"
    },
    {
      "domain": "spenc.es",
      "r3ply": "r3ply.com",
      "signet": "qhQ6YSUvQNLb1lCdw3kDRg",
      "issued": "2025-08-22"
    }
  ]
}