github.com/icyphox/x@v0.0.355-0.20220311094250-029bd783e8b8/configx/stub/domain-aliases/config.schema.json (about)

     1  {
     2    "$schema": "http://json-schema.org/draft-07/schema#",
     3    "properties": {
     4      "domain_aliases": {
     5        "title": "Domain Aliases",
     6        "description": "Adds an alias domain. If a request with the hostname (FQDN) matching the hostname in the alias is found, that URL is used as the base URL.",
     7        "type": "array",
     8        "items": [
     9          {
    10            "additionalProperties": false,
    11            "type": "object",
    12            "required": [
    13              "match_domain",
    14              "base_path",
    15              "scheme"
    16            ],
    17            "properties": {
    18              "match_domain": {
    19                "minLength": 1,
    20                "title": "Matching Domain",
    21                "description": "Sets the matching domain. If the domain matches with this entry, the accompanying base_url will be used.",
    22                "type": "string",
    23                "examples": [
    24                  "localhost",
    25                  "my-domain.com"
    26                ]
    27              },
    28              "scheme": {
    29                "title": "Scheme",
    30                "description": "Sets the scheme, for example https or http.",
    31                "type": "string",
    32                "enum": [
    33                  "http",
    34                  "https"
    35                ]
    36              },
    37              "base_path": {
    38                "minLength": 1,
    39                "title": "Base Path",
    40                "description": "Sets the base path for the matched domain.",
    41                "type": "string",
    42                "default": "/",
    43                "pattern": "^/.*$",
    44                "examples": [
    45                  "/",
    46                  "/.ory/kratos"
    47                ]
    48              }
    49            }
    50          }
    51        ]
    52      }
    53    }
    54  }