2018-11-15 04:09:57 +01:00
|
|
|
version: 0.1
|
|
|
|
log:
|
2020-12-14 04:52:42 +01:00
|
|
|
level: {{level}}
|
2018-11-15 04:09:57 +01:00
|
|
|
fields:
|
|
|
|
service: registry
|
|
|
|
storage:
|
|
|
|
cache:
|
|
|
|
layerinfo: redis
|
|
|
|
{{storage_provider_info}}
|
|
|
|
maintenance:
|
|
|
|
uploadpurging:
|
2021-12-16 09:00:07 +01:00
|
|
|
{% if purge_upload.enabled %}
|
|
|
|
enabled: true
|
|
|
|
age: {{ purge_upload.age }}
|
|
|
|
interval: {{ purge_upload.interval }}
|
|
|
|
{% if purge_upload.dryrun %}
|
|
|
|
dryrun: true
|
|
|
|
{% else %}
|
|
|
|
dryrun: false
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
2018-11-15 04:09:57 +01:00
|
|
|
enabled: false
|
2021-12-16 09:00:07 +01:00
|
|
|
{% endif %}
|
2018-11-15 04:09:57 +01:00
|
|
|
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}}
|
2021-06-15 12:39:15 +02:00
|
|
|
pool:
|
|
|
|
maxidle: 100
|
|
|
|
maxactive: 500
|
|
|
|
idletimeout: 60s
|
2018-11-15 04:09:57 +01:00
|
|
|
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:
|
2021-06-15 12:39:15 +02:00
|
|
|
enabled: true
|