provisioning/schemas/platform/defaults/extension-registry-defaults.ncl

43 lines
1.2 KiB
Text
Raw Normal View History

# Extension Registry Default Configuration
# Pattern: 3-Layer Config (flat notation + | default)
let registry_schema = import "../extension-registry.ncl" in
let base_extension_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 = "extension-registry",
build.binary = "extension-registry",
build.port = 9094,
build.features = [],
build.extra_runtime_pkgs = [],
} in
{
# Base configuration with all defaults
extension_registry = base_extension_registry | registry_schema.RegistryConfig,
}