2018-11-15 04:09:57 +01:00
|
|
|
version: 0.1
|
|
|
|
log:
|
2019-04-02 14:08:26 +02:00
|
|
|
level: {{log_level}}
|
2018-11-15 04:09:57 +01:00
|
|
|
fields:
|
|
|
|
service: registry
|
|
|
|
storage:
|
|
|
|
cache:
|
|
|
|
layerinfo: redis
|
|
|
|
{{storage_provider_info}}
|
|
|
|
maintenance:
|
|
|
|
uploadpurging:
|
|
|
|
enabled: false
|
|
|
|
delete:
|
|
|
|
enabled: true
|
2019-04-30 11:05:27 +02:00
|
|
|
{% if storage_redirect_disabled %}
|
|
|
|
redirect:
|
2019-05-10 17:08:21 +02:00
|
|
|
disable: true
|
2019-04-30 11:05:27 +02:00
|
|
|
{% endif %}
|
2018-11-15 04:09:57 +01:00
|
|
|
redis:
|
2020-06-15 18:20:18 +02:00
|
|
|
{% if sentinel_master_set %}
|
|
|
|
# sentinel hosts with comma
|
|
|
|
addr: {{redis_host}}
|
|
|
|
sentinelMasterSet: {{sentinel_master_set}}
|
|
|
|
{% else %}
|
|
|
|
addr: {{redis_host}}
|
|
|
|
{% endif %}
|
2020-08-21 05:13:39 +02:00
|
|
|
readtimeout: 10s
|
|
|
|
writetimeout: 10s
|
|
|
|
dialtimeout: 10s
|
2018-11-15 04:09:57 +01:00
|
|
|
password: {{redis_password}}
|
|
|
|
db: {{redis_db_index_reg}}
|
|
|
|
http:
|
2020-02-12 10:40:57 +01:00
|
|
|
{% if internal_tls.enabled %}
|
|
|
|
addr: :5443
|
2020-04-13 11:50:37 +02:00
|
|
|
tls:
|
2020-04-19 10:16:19 +02:00
|
|
|
certificate: /etc/harbor/tls/registry.crt
|
|
|
|
key: /etc/harbor/tls/registry.key
|
2020-04-13 11:50:37 +02:00
|
|
|
minimumtls: tls1.2
|
2020-02-12 10:40:57 +01:00
|
|
|
{% else %}
|
2018-11-15 04:09:57 +01:00
|
|
|
addr: :5000
|
2020-02-12 10:40:57 +01:00
|
|
|
{% endif %}
|
2018-11-15 04:09:57 +01:00
|
|
|
secret: placeholder
|
|
|
|
debug:
|
2020-10-18 18:16:02 +02:00
|
|
|
{% if metric.enabled %}
|
|
|
|
addr: :{{ metric.port }}
|
|
|
|
prometheus:
|
|
|
|
enabled: true
|
|
|
|
path: {{ metric.path }}
|
|
|
|
{% else %}
|
2018-11-15 04:09:57 +01:00
|
|
|
addr: localhost:5001
|
2020-10-18 18:16:02 +02:00
|
|
|
{% endif %}
|
2018-11-15 04:09:57 +01:00
|
|
|
auth:
|
2019-12-25 07:59:47 +01:00
|
|
|
htpasswd:
|
|
|
|
realm: harbor-registry-basic-realm
|
|
|
|
path: /etc/registry/passwd
|
2019-02-20 11:01:48 +01:00
|
|
|
validation:
|
|
|
|
disabled: true
|
2019-04-15 08:44:29 +02:00
|
|
|
compatibility:
|
|
|
|
schema1:
|
|
|
|
enabled: true
|