provisioning/config/examples/extension-registry.enterprise.example.toml

87 lines
2.2 KiB
TOML
Raw Normal View History

# Extension Registry Configuration - Enterprise Example
# High-availability, multi-source, multi-registry production deployment
[server]
2026-01-12 05:19:06 +00:00
enable_compression = true
enable_cors = true
host = "0.0.0.0"
port = 8082
workers = 8
# Primary internal Gitea instance
[[sources.gitea]]
id = "primary-internal-gitea"
organization = "platform-extensions"
timeout_seconds = 30
2026-01-12 05:19:06 +00:00
token_path = "/etc/secrets/gitea-primary-token.txt"
url = "https://gitea.internal.company.com"
verify_ssl = true
# Secondary internal Gitea (failover)
[[sources.gitea]]
id = "secondary-internal-gitea"
organization = "platform-extensions"
timeout_seconds = 30
2026-01-12 05:19:06 +00:00
token_path = "/etc/secrets/gitea-secondary-token.txt"
url = "https://gitea-secondary.internal.company.com"
verify_ssl = true
# Forgejo for community extensions
[[sources.forgejo]]
id = "enterprise-forgejo"
organization = "platform"
timeout_seconds = 30
2026-01-12 05:19:06 +00:00
token_path = "/etc/secrets/forgejo-token.txt"
url = "https://forge.company.com"
verify_ssl = true
# GitHub organization
[[sources.github]]
id = "company-github"
organization = "company-platform"
timeout_seconds = 30
2026-01-12 05:19:06 +00:00
token_path = "/etc/secrets/github-token.txt"
verify_ssl = true
# Primary enterprise OCI registry (Zot)
[[distributions.oci]]
id = "primary-oci-zot"
namespace = "platform/extensions"
2026-01-12 05:19:06 +00:00
registry = "zot.internal.company.com"
timeout_seconds = 30
verify_ssl = true
# Secondary enterprise OCI registry (Harbor)
[[distributions.oci]]
2026-01-12 05:19:06 +00:00
auth_token_path = "/etc/secrets/harbor-token.txt"
id = "secondary-oci-harbor"
namespace = "platform"
2026-01-12 05:19:06 +00:00
registry = "harbor.internal.company.com"
timeout_seconds = 30
verify_ssl = true
# Public Docker Hub for external distribution
[[distributions.oci]]
2026-01-12 05:19:06 +00:00
auth_token_path = "/etc/secrets/docker-hub-token.txt"
id = "public-docker-hub"
namespace = "company-open-source"
2026-01-12 05:19:06 +00:00
registry = "docker.io"
timeout_seconds = 30
verify_ssl = true
# Public GHCR for open-source projects
[[distributions.oci]]
2026-01-12 05:19:06 +00:00
auth_token_path = "/etc/secrets/ghcr-token.txt"
id = "public-ghcr"
namespace = "company-open-source"
2026-01-12 05:19:06 +00:00
registry = "ghcr.io"
timeout_seconds = 30
verify_ssl = true
# Caching configuration for high-traffic enterprise environment
[cache]
capacity = 5000
enable_list_cache = true
2026-01-12 05:19:06 +00:00
enable_metadata_cache = true
ttl_seconds = 600