45 lines
1.1 KiB
Text
45 lines
1.1 KiB
Text
|
|
# Catalog Registry Configuration
|
||
|
|
# Generated by TypeDialog - Edit via configure-catalog-registry.sh
|
||
|
|
# Rust struct: platform/crates/catalog-registry/src/config.rs::Config
|
||
|
|
|
||
|
|
{
|
||
|
|
server = {
|
||
|
|
host = "{{ server_host }}",
|
||
|
|
port = {{ server_port }},
|
||
|
|
workers = {{ server_workers }},
|
||
|
|
request_timeout_ms = {{ server_request_timeout_ms }},
|
||
|
|
},
|
||
|
|
|
||
|
|
{% if gitea_url %}
|
||
|
|
gitea = {
|
||
|
|
url = "{{ gitea_url }}",
|
||
|
|
username = "{{ gitea_username }}",
|
||
|
|
{% if gitea_password %}
|
||
|
|
password = "{{ gitea_password }}",
|
||
|
|
{% endif %}
|
||
|
|
organization = "{{ gitea_organization }}",
|
||
|
|
enable_webhooks = {{ gitea_enable_webhooks }},
|
||
|
|
},
|
||
|
|
{% endif %}
|
||
|
|
|
||
|
|
{% if oci_registry_url %}
|
||
|
|
oci = {
|
||
|
|
registry_url = "{{ oci_registry_url }}",
|
||
|
|
{% if oci_username %}
|
||
|
|
username = "{{ oci_username }}",
|
||
|
|
{% endif %}
|
||
|
|
{% if oci_password %}
|
||
|
|
password = "{{ oci_password }}",
|
||
|
|
{% endif %}
|
||
|
|
namespace = "{{ oci_namespace }}",
|
||
|
|
enable_auth = {{ oci_enable_auth }},
|
||
|
|
},
|
||
|
|
{% endif %}
|
||
|
|
|
||
|
|
cache = {
|
||
|
|
enabled = {{ cache_enabled }},
|
||
|
|
ttl_seconds = {{ cache_ttl_seconds }},
|
||
|
|
max_size_mb = {{ cache_max_size_mb }},
|
||
|
|
},
|
||
|
|
}
|