# Extension Registry - Solo/Development Mode
# Single Gitea instance for local development
let registry_schema = import "../schemas/extension-registry.ncl" in
{
  extension_registry | registry_schema.RegistryConfig = {
    server = {
      host = "127.0.0.1",
      port = 8081,
      workers = 2,
      enable_cors = false,
      enable_compression = true,
    },
    sources = {
      gitea = [
        {
          url = "http://localhost:3000",
          organization = "provisioning-solo",
          token_path = "/etc/secrets/gitea-token.txt",
          timeout_seconds = 30,
          verify_ssl = false,
        },
      ],
    },
    cache = {
      capacity = 100,
      ttl_seconds = 60,
      enable_metadata_cache = true,
      enable_list_cache = true,
    },
  },
}
