{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://dioad.github.io/connect/schema/server.schema.json",
  "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.Config",
  "$defs": {
    "github.com.dioad.auth.claimrolemapping.ClaimRoleMappingConfig": {
      "properties": {
        "source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`source` restricts this mapping to a named PrincipalSource (e.g. \"flyio\", \"aws\"). Empty means match any source."
        },
        "claims": {
          "anyOf": [
            {
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  }
                ]
              },
              "type": "object"
            },
            {
              "items": {
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    }
                  ]
                },
                "type": "object"
              },
              "type": "array"
            }
          ],
          "description": "`claims` maps claim keys to required values. A value of \"*\" matches any non-empty string."
        },
        "role": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`role` is the internal role granted when all claim predicates match."
        },
        "debug": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`debug` enables per-request structured debug logging for this rule. Do not enable in production — evaluated claim values appear in the log output."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ClaimRoleMappingConfig maps a set of JWT claim predicates to an internal role, optionally restricted to a specific PrincipalSource. An empty Source matches any source."
    },
    "github.com.dioad.auth.oidc.ClientConfig": {
      "properties": {
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`type` selects a provider-specific behaviour. Accepted values are \"github\", \"githubactions\", \"keycloak\", \"flyio\" and \"aws\". Leave empty for a generic OIDC provider discovered from URL."
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`url` is the OIDC issuer URL, for example \"https://accounts.example.com\". Provider metadata and signing keys are discovered from it."
        },
        "keycloak-realm": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`keycloak-realm` is the Keycloak realm name. It is only used when Type is \"keycloak\"."
        },
        "client-id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`client-id` is the OAuth 2.0 client identifier registered with the provider."
        },
        "client-secret": {
          "type": "string",
          "description": "`client-secret` is the OAuth 2.0 client secret, used for the client credentials flow. Set at most one of ClientSecret and ClientSecretFile."
        },
        "client-secret-file": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`client-secret-file` is the path to a file containing the client secret, for example a mounted container secret. Surrounding whitespace is trimmed. The file is read when the token source is built, not when the config is validated; an unreadable or empty file is an error. Set at most one of ClientSecret and ClientSecretFile."
        },
        "audience": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`audience` is the audience requested for issued tokens. It is required by platform identity providers such as \"githubactions\", \"flyio\" and \"aws\" and ignored by providers that do not support it."
        },
        "token-file": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`token-file` is the path to a file used to persist the interactive login token between runs. When set, the token is loaded from the file and refreshed with its refresh token once it expires."
        },
        "tls-client": {
          "$ref": "#/$defs/github.com.dioad.net.tls.ClientConfig",
          "description": "`tls-client` configures TLS for connections to the provider, such as a custom CA bundle."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ClientConfig captures client credentials and token acquisition options for an OIDC provider."
    },
    "github.com.dioad.auth.oidc.ValidatorConfig": {
      "properties": {
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`type` selects a provider-specific behaviour. Accepted values are \"github\", \"githubactions\", \"keycloak\", \"flyio\" and \"aws\". Leave empty for a generic OIDC provider discovered from URL."
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`url` is the OIDC issuer URL, for example \"https://accounts.example.com\". Provider metadata and signing keys are discovered from it."
        },
        "keycloak-realm": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`keycloak-realm` is the Keycloak realm name. It is only used when Type is \"keycloak\"."
        },
        "audiences": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`audiences` lists the accepted values of the token \"aud\" claim. A token is accepted if it carries at least one of them."
        },
        "issuer": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`issuer` is the expected token \"iss\" claim. Signing keys are discovered from its JWKS endpoint."
        },
        "cache_ttl_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`cache_ttl_seconds` is how long, in seconds, discovered signing keys are cached. Defaults to 300 when unset or not positive."
        },
        "signature_algorithm": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`signature_algorithm` is a single accepted signing algorithm, for example \"RS256\". Ignored when SignatureAlgorithms is set."
        },
        "signature_algorithms": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`signature_algorithms` lists the accepted signing algorithms, for example \"RS256\", \"ES256\". Takes precedence over SignatureAlgorithm."
        },
        "allowed_clock_skew_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`allowed_clock_skew_seconds` is the tolerance, in seconds, applied to the token \"exp\", \"nbf\" and \"iat\" claims. Defaults to 60 when unset or not positive."
        },
        "debug": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`debug` enables debug logging of each token validation attempt and its outcome. Intended for troubleshooting."
        },
        "claim_predicates": {
          "anyOf": [
            {
              "type": "object"
            },
            {
              "items": {
                "type": "object"
              },
              "type": "array"
            }
          ],
          "description": "`claim_predicates` restricts which tokens are accepted by their claims. Each key is a claim name and its value is the required claim value; an array claim matches when it contains the value. All entries must match. Use the reserved keys \"and\" and \"or\", each holding a list of such maps, for nested combinations."
        },
        "hmac_secret": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`hmac_secret` is an optional shared secret for HS256/HS384/HS512 token validation. When non-empty, JWKS discovery is skipped and the secret is used directly as the signing key. Intended for local development and smoke testing only; never use a static shared secret in production. Requires AllowInsecureHMAC: true to prevent accidental production use."
        },
        "allow_insecure_hmac": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`allow_insecure_hmac` must be set to true when HMACSecret is used. This explicit opt-in acknowledges that HMAC shared secrets are not suitable for production deployments. Never set this to true in production config."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ValidatorConfig controls validation behavior for issued tokens."
    },
    "github.com.dioad.cli.logging.Config": {
      "properties": {
        "level": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`level` specifies the logging level: trace, debug, info, warn, error, fatal, panic. Empty string defaults to application-configured level or zerolog.WarnLevel."
        },
        "file": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`file` specifies the path to the log file. Supports home directory expansion (~). Empty string disables file logging (logs to stdout only)."
        },
        "max-size": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`max-size` is the maximum size of the log file in MB before rotation occurs. Default is 100 MB."
        },
        "max-age": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`max-age` is the maximum number of days to keep old log files. Default is 0 (no limit)."
        },
        "max-backups": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`max-backups` is the maximum number of old log files to retain. Default is 0 (keep all)."
        },
        "use-local-time": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`use-local-time` determines if rotated filenames use local time instead of UTC. Default is false."
        },
        "compress": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`compress` determines if old log files are gzip-compressed after rotation. Default is false."
        },
        "mode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`mode` is reserved for future use."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config contains all configuration options for logging behavior.\n\nFields support struct tags for configuration file unmarshaling:\n\nYAML Example:"
    },
    "github.com.dioad.connect.internal.cmd.server.AgentRegistryConfig": {
      "properties": {
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`url` is the registry's base URL, for example https://registry.example.com."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "AgentRegistryConfig locates the agent registry. Leave it unset and tunnel hosts only find forward targets on this server."
    },
    "github.com.dioad.connect.internal.cmd.server.Config": {
      "properties": {
        "log": {
          "$ref": "#/$defs/github.com.dioad.cli.logging.Config"
        },
        "management-listen-address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`management-listen-address` is the host:port of the management listener that serves health, /metrics and, with enable-debug, pprof. Empty disables it."
        },
        "management-allow-unauthenticated-non-loopback": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`management-allow-unauthenticated-non-loopback` confirms that the management listener may bind beyond loopback with nothing in front of it to authenticate callers. Check accepts a non-loopback address without it only when ManagementTLSServer requires client certificates."
        },
        "management-enable-proxy-protocol": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`management-enable-proxy-protocol` accepts a PROXY protocol header on the management listener, for one a proxy forwards to. Leave it off for a platform check or scraper that connects directly."
        },
        "management-tls-server": {
          "$ref": "#/$defs/github.com.dioad.net.tls.ServerConfig",
          "description": "`management-tls-server` serves the management listener over TLS. With client-auth-type RequireAndVerifyClientCert and a client-ca-file it also authenticates callers, which lets the listener bind beyond loopback without the acknowledgement. Convert it with tls.NewServerTLSConfig and set the result as OperationalConfig.TLSConfig."
        },
        "enable-prometheus-metrics": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`enable-prometheus-metrics` serves /metrics on the management listener. Unset means on: the listener exists for health and metrics, and a service has to set it false to turn them off."
        },
        "enable-debug": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`enable-debug` should only be true in development environments. Set to false in production to avoid exposing sensitive information."
        },
        "shutdown-drain-delay": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[-+]?(0|(([0-9]+(\\.[0-9]*)?|\\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$"
            },
            {
              "type": "integer"
            }
          ],
          "title": "duration",
          "description": "`shutdown-drain-delay` is how long shutdown waits, after /health/ready starts reporting not-ready and before listeners close, so a load balancer stops routing new requests first. Set it to at least one probe interval. Zero (the default) closes listeners immediately."
        },
        "enable-search": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`enable-search` serves forward-target search on the management listener."
        },
        "control": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.ControlConfig",
          "description": "`control` defines the settings for the control plane interface."
        },
        "identity": {
          "$ref": "#/$defs/github.com.dioad.auth.oidc.ClientConfig",
          "description": "`identity` defines the OIDC client settings for server identity."
        },
        "connect": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.ConnectConfig",
          "description": "`connect` defines the core connection and service settings."
        },
        "events": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.EventConfig",
          "description": "`events` defines how the server handles and routes events."
        },
        "agent-registry": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.AgentRegistryConfig",
          "description": "`agent-registry` locates the agent registry, which tunnel hosts search for forward targets served by other servers."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config is the top-level configuration for the server."
    },
    "github.com.dioad.connect.internal.cmd.server.ConnectConfig": {
      "properties": {
        "defaults": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.resource.connect.BaseServiceConfig"
        },
        "services": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.resource.connect.ServiceConfig"
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ConnectConfig configures the connect services that accept tunnel connections."
    },
    "github.com.dioad.connect.internal.cmd.server.ControlConfig": {
      "properties": {
        "listen-address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "enable-proxy-protocol": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "tls-server": {
          "$ref": "#/$defs/github.com.dioad.net.tls.ServerConfig"
        },
        "allow-unauthenticated-non-loopback": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`allow-unauthenticated-non-loopback` acknowledges that a service sets allow-unauthenticated while this listener is reachable from other hosts, so anyone who can reach it can open tunnels. Without it that combination is rejected."
        },
        "registration-url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`registration-url` is the URL where new users can register an account. When set, the server root page displays a \"Create a free account\" link."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ControlConfig configures the control listener that agents connect to."
    },
    "github.com.dioad.connect.internal.cmd.server.EventBrokerConfig": {
      "properties": {
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "default: \"connect\""
        },
        "lifecycle-topic": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`lifecycle-topic` receives TunnelConnected, TunnelDisconnected, TunnelUpdate, EndpointRegistered, and EndpointDeregistered events. Default: \"connect.tunnel.lifecycle\"."
        },
        "updates-topic": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`updates-topic` receives periodic TunnelUpdates snapshot events (high frequency). Default: \"connect.tunnel.updates\"."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "EventBrokerConfig configures publishing to an eventbroker instance. It is the only way the server publishes events; omit the block and none are published.\n\nTopics follow a dot-separated reverse-DNS naming convention (e.g. \"connect.tunnel.lifecycle\"). At least one dot is required — single-word names collide with reserved eventbroker URL segments (\"stream\", \"batch\", etc.).\n\nTLS and authentication are handled by the shared event HTTP client (which carries the server's OIDC token transport), not by this config block."
    },
    "github.com.dioad.connect.internal.cmd.server.EventConfig": {
      "properties": {
        "default-event-sink": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`default-event-sink` is the deprecated name for agent-registry.url. Events are no longer posted to it. agent-registry.url takes precedence."
        },
        "tls-client": {
          "$ref": "#/$defs/github.com.dioad.net.tls.ClientConfig"
        },
        "event-broker": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.EventBrokerConfig"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "EventConfig configures how the server publishes events."
    },
    "github.com.dioad.connect.internal.cmd.server.resource.connect.BaseServiceConfig": {
      "properties": {
        "allow-unauthenticated": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`allow-unauthenticated` is a *bool, not a bool, so callers merging this config against a layered default (e.g. connect's per-service overrides) can tell \"not set at this level\" (nil) apart from an explicit false - a plain bool can't distinguish the two, which would let a true default silently override a service's explicit false."
        },
        "accept-unauthenticated-risk": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`accept-unauthenticated-risk` is the second opt-in AllowUnauthenticated needs before Check accepts it. One flag copied into a production config by mistake is then not enough to open the API."
        },
        "claim-role-mappings": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.auth.claimrolemapping.ClaimRoleMappingConfig"
          },
          "type": "array"
        },
        "enable-proxy-protocol": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`enable-proxy-protocol` is a *bool, not a bool, so MergeServiceConfig can tell \"not set at this level\" (nil) apart from an explicit false - a plain bool can't distinguish the two, which previously let a true default silently override a service's explicit false."
        },
        "default-domain": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`default-domain` is a *string, not a value, so MergeServiceConfig can tell \"not set at this level\" (nil) apart from an explicit empty override - e.g. an internal-only service opting out of the domain suffix connect.defaults applies to every other service."
        },
        "jwt-validators": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.auth.oidc.ValidatorConfig"
          },
          "type": "array"
        },
        "authorisation": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.service.TunnelAuthoriserConfig",
          "description": "`authorisation` decides each principal's privileges. Nothing replaces it: claims identify a principal, they do not grant privileges."
        },
        "tag-policy": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.service.TagPolicyConfig",
          "description": "`tag-policy` reserves tag prefixes for chosen roles and principals on the tunnels opened on this service. MergeServiceConfig combines a service's reservations with the defaults' rather than replacing them, so no service can lift one. A forward service finds its targets on reverse services, so reserve the tags it selects by in the defaults, not on the forward service."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "BaseServiceConfig holds the settings that connect services inherit when they do not set their own."
    },
    "github.com.dioad.connect.internal.cmd.server.resource.connect.RateLimiterConfig": {
      "properties": {
        "requests-per-second": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "pattern": "^([-+]?([0-9]+(\\.[0-9]*)?|\\.[0-9]+)([eE][-+]?[0-9]+)?)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`requests-per-second` is the steady-state allowed rate per principal."
        },
        "burst": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`burst` is the maximum number of requests allowed in a burst."
        },
        "ip-requests-per-second": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "pattern": "^([-+]?([0-9]+(\\.[0-9]*)?|\\.[0-9]+)([eE][-+]?[0-9]+)?)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`ip-requests-per-second` is the steady-state rate allowed per client address, applied before the request is authenticated or authorised so that a flood does not cost a token validation and an account-service call each. Zero takes the default of 50."
        },
        "ip-burst": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`ip-burst` is the burst allowed per client address. Zero takes the default of 200."
        },
        "disable-ip-limit": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`disable-ip-limit` turns the per-address limit off. Behind a proxy that does not pass the client address on (no PROXY protocol), every request has the proxy's address and shares one bucket."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "RateLimiterConfig holds configuration for the per-principal rate limiter."
    },
    "github.com.dioad.connect.internal.cmd.server.resource.connect.ServiceConfig": {
      "properties": {
        "allow-unauthenticated": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`allow-unauthenticated` is a *bool, not a bool, so callers merging this config against a layered default (e.g. connect's per-service overrides) can tell \"not set at this level\" (nil) apart from an explicit false - a plain bool can't distinguish the two, which would let a true default silently override a service's explicit false."
        },
        "accept-unauthenticated-risk": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`accept-unauthenticated-risk` is the second opt-in AllowUnauthenticated needs before Check accepts it. One flag copied into a production config by mistake is then not enough to open the API."
        },
        "claim-role-mappings": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.auth.claimrolemapping.ClaimRoleMappingConfig"
          },
          "type": "array"
        },
        "enable-proxy-protocol": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`enable-proxy-protocol` is a *bool, not a bool, so MergeServiceConfig can tell \"not set at this level\" (nil) apart from an explicit false - a plain bool can't distinguish the two, which previously let a true default silently override a service's explicit false."
        },
        "default-domain": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`default-domain` is a *string, not a value, so MergeServiceConfig can tell \"not set at this level\" (nil) apart from an explicit empty override - e.g. an internal-only service opting out of the domain suffix connect.defaults applies to every other service."
        },
        "jwt-validators": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.auth.oidc.ValidatorConfig"
          },
          "type": "array"
        },
        "authorisation": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.service.TunnelAuthoriserConfig",
          "description": "`authorisation` decides each principal's privileges. Nothing replaces it: claims identify a principal, they do not grant privileges."
        },
        "tag-policy": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.service.TagPolicyConfig",
          "description": "`tag-policy` reserves tag prefixes for chosen roles and principals on the tunnels opened on this service. MergeServiceConfig combines a service's reservations with the defaults' rather than replacing them, so no service can lift one. A forward service finds its targets on reverse services, so reserve the tags it selects by in the defaults, not on the forward service."
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "service-type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "direction": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "visibility": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "listen-address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "external-port": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "config": {
          "anyOf": [
            {
              "type": "object"
            },
            {
              "items": {
                "type": "object"
              },
              "type": "array"
            }
          ]
        },
        "rate-limiter": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.resource.connect.RateLimiterConfig",
          "description": "`rate-limiter` controls per-principal tunnel-creation rate limiting. When nil, defaults of 1 req/s with a burst of 3 are used."
        },
        "max-tunnels": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`max-tunnels` caps the tunnels this service holds at once; a connection beyond it is refused with 503 and Retry-After. Zero means no cap."
        },
        "max-tunnels-per-principal": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`max-tunnels-per-principal` caps the tunnels one principal holds on this service at once, with the same refusal. A reconnecting agent whose previous tunnel the server has not yet noticed is gone counts against it, so leave headroom above the number of agents a principal runs. Zero means no cap."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ServiceConfig is the configuration for a service that can be registered with the server."
    },
    "github.com.dioad.connect.internal.cmd.server.service.DynamicAuthoriserConfig": {
      "properties": {
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "http://accounts/"
        },
        "authorization-timeout": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[-+]?(0|(([0-9]+(\\.[0-9]*)?|\\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$"
            },
            {
              "type": "integer"
            }
          ],
          "title": "duration"
        },
        "cache-ttl": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[-+]?(0|(([0-9]+(\\.[0-9]*)?|\\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$"
            },
            {
              "type": "integer"
            }
          ],
          "title": "duration",
          "description": "`cache-ttl` is how long an answer from the account service is reused, so a wave of reconnecting agents does not become a wave of calls. Zero takes the default of 30s; a negative value turns the cache off."
        },
        "stale-ttl": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[-+]?(0|(([0-9]+(\\.[0-9]*)?|\\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$"
            },
            {
              "type": "integer"
            }
          ],
          "title": "duration",
          "description": "`stale-ttl` is how long an expired answer may still be served while the account service cannot be reached, so agents authorised shortly before an outage stay authorised through it. Zero takes the default of 10m; a negative value turns it off."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "DynamicAuthoriserConfig configures an authoriser that asks a remote service for a principal's privileges."
    },
    "github.com.dioad.connect.internal.cmd.server.service.GroupInlineAuthoriserConfig": {
      "properties": {
        "group-privileges": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.service.GroupPrivilegeMap"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "GroupInlineAuthoriserConfig holds a static mapping of group names to privileges."
    },
    "github.com.dioad.connect.internal.cmd.server.service.GroupPrivilegeMap": {
      "anyOf": [
        {
          "additionalProperties": {
            "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.service.PrivilegeConfig"
          },
          "type": "object"
        },
        {
          "items": {
            "additionalProperties": {
              "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.service.PrivilegeConfig"
            },
            "type": "object"
          },
          "type": "array"
        }
      ],
      "description": "GroupPrivilegeMap maps Keycloak/OIDC group names to their associated privileges."
    },
    "github.com.dioad.connect.internal.cmd.server.service.InlineAuthoriserConfig": {
      "properties": {
        "privileges": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.service.PrivilegeMap"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "InlineAuthoriserConfig configures an authoriser with privileges defined inline in the configuration."
    },
    "github.com.dioad.connect.internal.cmd.server.service.PrivilegeConfig": {
      "properties": {
        "has-custom-domain": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "has-custom-subdomain": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "enable-dynamic-subdomain": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "has-network-acl": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "enable-forward-tunnels": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "PrivilegeConfig configures the privileges granted to a principal."
    },
    "github.com.dioad.connect.internal.cmd.server.service.PrivilegeMap": {
      "anyOf": [
        {
          "additionalProperties": {
            "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.service.PrivilegeConfig"
          },
          "type": "object"
        },
        {
          "items": {
            "additionalProperties": {
              "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.service.PrivilegeConfig"
            },
            "type": "object"
          },
          "type": "array"
        }
      ],
      "description": "PrivilegeMap maps a principal or group name to the privileges it is granted."
    },
    "github.com.dioad.connect.internal.cmd.server.service.ReservedTagPrefix": {
      "properties": {
        "prefix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`prefix` is matched case-insensitively against the start of each tag."
        },
        "roles": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`roles` that may use the prefix: OIDC groups and roles assigned by claim-role-mappings."
        },
        "principals": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`principals` that may use the prefix, by exact principal ID."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ReservedTagPrefix reserves one tag prefix for the roles and principals listed. A prefix with neither may not be used by anyone."
    },
    "github.com.dioad.connect.internal.cmd.server.service.TagPolicyConfig": {
      "properties": {
        "reserved-prefixes": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.service.ReservedTagPrefix"
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "TagPolicyConfig reserves tag prefixes so that only the roles and principals granted a prefix can put a tag under it on a tunnel. Agents choose their own tags and forward services pick their targets by tag, so an unreserved tag can be claimed by any principal allowed to open a tunnel."
    },
    "github.com.dioad.connect.internal.cmd.server.service.TunnelAuthoriserConfig": {
      "properties": {
        "inline": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.service.InlineAuthoriserConfig"
        },
        "group-inline": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.service.GroupInlineAuthoriserConfig"
        },
        "dynamic": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.server.service.DynamicAuthoriserConfig"
        },
        "default-allow-all": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "TunnelAuthoriserConfig selects and configures the authorisers used to decide a principal's privileges."
    },
    "github.com.dioad.net.tls.ACMEConfig": {
      "properties": {
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`type` selects the ACME challenge mechanism: ACMEChallengeTLSALPN01 or ACMEChallengeDNS01. An absent/empty Type (the zero value) defaults to ACMEChallengeTLSALPN01, so callers who only need TLS-ALPN-01 can omit this field entirely."
        },
        "email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "directory-url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "cache-directory": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "domains": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`domains` is, for Type=dns-01, the SANs to include on the single certificate obtained upfront (may include wildcards, e.g. \"*.example.com\"); for Type=tls-alpn-01 (default), the whitelist of hosts autocert will provision certificates for on demand via autocert.HostWhitelist. Wildcard entries are rejected for tls-alpn-01 - TLS-ALPN-01 cannot validate wildcard identifiers (RFC 8555 permits wildcards only via dns-01), and autocert's HostWhitelist silently ignores such entries rather than erroring, so NewACMETLSConfig validates this upfront instead."
        },
        "dns01-propagation-timeout": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[-+]?(0|(([0-9]+(\\.[0-9]*)?|\\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$"
            },
            {
              "type": "integer"
            }
          ],
          "title": "duration",
          "description": "`dns01-propagation-timeout` bounds how long lego waits for DNS propagation of the challenge TXT record. Zero uses lego's default (60s)."
        },
        "dns01-polling-interval": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[-+]?(0|(([0-9]+(\\.[0-9]*)?|\\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$"
            },
            {
              "type": "integer"
            }
          ],
          "title": "duration",
          "description": "`dns01-polling-interval` controls how often lego polls while waiting for propagation. Zero uses lego's default (2s)."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ACMEConfig specifies parameters for obtaining a certificate via ACME, using either the tls-alpn-01 challenge (delegated to golang.org/x/crypto/acme/autocert) or the dns-01 challenge (a hand-rolled github.com/go-acme/lego/v5 client). The two challenge types share the same account identity and cache directory, but obtain certificates through entirely independent runtime implementations - only the config surface is unified here."
    },
    "github.com.dioad.net.tls.CertificateSubject": {
      "properties": {
        "c": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "o": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "ou": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "l": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "st": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "street": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "postalcode": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "serialnumber": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "cn": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "CertificateSubject defines X.509 certificate subject information."
    },
    "github.com.dioad.net.tls.ClientConfig": {
      "properties": {
        "root-ca-file": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "cert": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "insecure-skip-verify": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ClientConfig specifies TLS client configuration."
    },
    "github.com.dioad.net.tls.LocalConfig": {
      "properties": {
        "single-pem-file": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "cert": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "file-wait-interval": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^(\\+?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "file-wait-max": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^(\\+?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "LocalConfig specifies local certificate and key file locations."
    },
    "github.com.dioad.net.tls.SANConfig": {
      "properties": {
        "dns-names": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "ip-addresses": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "SANConfig specifies Subject Alternative Names for a certificate (DNS names and IP addresses)."
    },
    "github.com.dioad.net.tls.SelfSignedConfig": {
      "properties": {
        "subject": {
          "$ref": "#/$defs/github.com.dioad.net.tls.CertificateSubject"
        },
        "san": {
          "$ref": "#/$defs/github.com.dioad.net.tls.SANConfig"
        },
        "duration": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "ca": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "bits": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "cache-directory": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "SelfSignedConfig specifies parameters for generating a self-signed certificate."
    },
    "github.com.dioad.net.tls.ServerConfig": {
      "properties": {
        "server-name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "acme": {
          "$ref": "#/$defs/github.com.dioad.net.tls.ACMEConfig"
        },
        "self-signed": {
          "$ref": "#/$defs/github.com.dioad.net.tls.SelfSignedConfig"
        },
        "local": {
          "$ref": "#/$defs/github.com.dioad.net.tls.LocalConfig"
        },
        "client-auth-type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "client-ca-file": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "next-protos": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "tls-min-version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ServerConfig specifies TLS configuration for a server."
    }
  },
  "title": "connect server config",
  "description": "The config file connect server loads. See doc/user/SERVER_CONFIGURATION.md."
}
