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

37 lines
865 B
Plaintext
Raw Normal View History

# Extension Registry Default Configuration
# Minimal defaults when no configuration is provided
let registry_schema = import "../schemas/extension-registry.ncl" in
{
extension_registry | registry_schema.RegistryConfig = {
server = {
host = "127.0.0.1",
port = 8081,
workers = 4,
enable_cors = false,
enable_compression = true,
},
# Default single Gitea source (auto-migrated from legacy format if needed)
sources = {
gitea = [
{
url = "http://localhost:3000",
organization = "provisioning",
token_path = "/etc/secrets/gitea-token.txt",
timeout_seconds = 30,
verify_ssl = false,
},
],
},
cache = {
capacity = 1000,
ttl_seconds = 300,
enable_metadata_cache = true,
enable_list_cache = true,
},
},
}