jcloude/press/playbooks/roles/registry/files/registry-config.yml.j2
2025-12-23 19:17:16 +08:00

36 lines
569 B
Django/Jinja

version: 0.1
log:
fields:
service: registry
{% if (is_mirror | string == '1') %}
storage:
cache:
blobdescriptor: inmemory
filesystem:
rootdirectory: /var/lib/registry
maxthreads: 300
{% endif %}
http:
addr: :5000
headers:
X-Content-Type-Options: [nosniff]
health:
storagedriver:
enabled: true
interval: 10s
threshold: 3
maintenance:
readonly:
enabled: true
{% if (is_mirror | string == '1') %}
proxy:
remoteurl: {{ proxy_pass }}
username: {{ username }}
password: {{ password }}
ttl: 168h
{% endif %}