provisioning/schemas/platform/configs/extension-registry.cicd.ncl

54 lines
1.4 KiB
Plaintext
Raw Normal View History

# Extension Registry - CI/CD Mode
# Optimized for CI/CD pipelines with distribution focus
let registry_schema = import "../schemas/extension-registry.ncl" in
{
extension_registry | registry_schema.RegistryConfig = {
server = {
host = "0.0.0.0",
port = 8081,
workers = 8,
enable_cors = false,
enable_compression = true,
},
sources = {
# Git sources for CI/CD discovery
gitea = [
{
id = "cicd-gitea",
url = "https://gitea.cicd:443",
organization = "provisioning-cicd",
token_path = "/etc/secrets/gitea-cicd-token.txt",
timeout_seconds = 30,
verify_ssl = false,
},
],
},
distributions = {
# OCI registries for CI/CD artifact storage
oci = [
{
id = "cicd-registry",
registry = "registry.cicd:5000",
namespace = "provisioning-cicd",
timeout_seconds = 30,
verify_ssl = false,
},
{
id = "staging-harbor",
registry = "harbor.staging:443",
namespace = "provisioning",
auth_token_path = "/etc/secrets/harbor-staging-token.txt",
timeout_seconds = 30,
verify_ssl = true,
},
],
},
cache = {
capacity = 5000,
ttl_seconds = 600,
enable_metadata_cache = true,
enable_list_cache = false,
},
},
}