harbor/make/photon/prepare/templates/registry/config.yml.jinja
Ziming Zhang 8857e89e40 feature(redis) support redis sentinel
Signed-off-by: Ziming Zhang <zziming@vmware.com>
2020-07-19 21:19:03 +08:00

50 lines
957 B
Django/Jinja

version: 0.1
log:
level: {{log_level}}
fields:
service: registry
storage:
cache:
layerinfo: redis
{{storage_provider_info}}
maintenance:
uploadpurging:
enabled: false
delete:
enabled: true
{% if storage_redirect_disabled %}
redirect:
disable: true
{% endif %}
redis:
{% if sentinel_master_set %}
# sentinel hosts with comma
addr: {{redis_host}}
sentinelMasterSet: {{sentinel_master_set}}
{% else %}
addr: {{redis_host}}
{% endif %}
password: {{redis_password}}
db: {{redis_db_index_reg}}
http:
{% if internal_tls.enabled %}
addr: :5443
tls:
certificate: /etc/harbor/tls/registry.crt
key: /etc/harbor/tls/registry.key
minimumtls: tls1.2
{% else %}
addr: :5000
{% endif %}
secret: placeholder
debug:
addr: localhost:5001
auth:
htpasswd:
realm: harbor-registry-basic-realm
path: /etc/registry/passwd
validation:
disabled: true
compatibility:
schema1:
enabled: true