# Catalog Registry Default Configuration # Pattern: 3-Layer Config (flat notation + | default) let registry_schema = import "../catalog-registry.ncl" in let base_catalog_registry = { # Server Configuration server.host = "127.0.0.1", server.port | default = 9094, server.workers | default = 4, server.enable_cors | default = false, server.enable_compression | default = true, # Default single Gitea source (nested - arrays can't be flattened) sources.gitea = [ { url = "http://localhost:3000", organization = "provisioning", token_path = "/etc/secrets/gitea-token.txt", timeout_seconds = 30, verify_ssl = false, }, ], # Cache Configuration cache.capacity | default = 1000, cache.ttl_seconds | default = 300, cache.enable_metadata_cache | default = true, cache.enable_list_cache | default = true, # Docker Build Configuration (no | default to override schema) build.package = "catalog-registry", build.binary = "catalog-registry", build.port = 9094, build.features = [], build.extra_runtime_pkgs = [], } in { # Base configuration with all defaults catalog_registry = base_catalog_registry | registry_schema.RegistryConfig, }