mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 06:03:45 +01:00
bba96b3669
It gives Harbor the capability to controll the cache of docker registry, and the workaround for cache invalidation bug caused by garbage collection, that is clean cache in GC job. For more details, see Harbor issue #5078.
38 lines
636 B
YAML
38 lines
636 B
YAML
version: 0.1
|
|
log:
|
|
level: debug
|
|
fields:
|
|
service: registry
|
|
storage:
|
|
cache:
|
|
layerinfo: redis
|
|
$storage_provider_info
|
|
maintenance:
|
|
uploadpurging:
|
|
enabled: false
|
|
delete:
|
|
enabled: true
|
|
redis:
|
|
addr: $redis_url
|
|
db: 1
|
|
http:
|
|
addr: :5000
|
|
secret: placeholder
|
|
debug:
|
|
addr: localhost:5001
|
|
auth:
|
|
token:
|
|
issuer: harbor-token-issuer
|
|
realm: $public_url/service/token
|
|
rootcertbundle: /etc/registry/root.crt
|
|
service: harbor-registry
|
|
|
|
notifications:
|
|
endpoints:
|
|
- name: harbor
|
|
disabled: false
|
|
url: $ui_url/service/notifications
|
|
timeout: 3000ms
|
|
threshold: 5
|
|
backoff: 1s
|