# The IP address or hostname to access admin UI and registry service. # DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients. hostname:harbor.home.cloud
配置HTTPS证书路径
1 2 3 4 5 6 7 8 9 10
# https related config https: # https port for harbor, default is 443 port:443 # The path of cert and key files for nginx certificate:/data/cert/harbor.home.cloud.cert private_key:/data/cert/harbor.home.cloud.key # enable strong ssl ciphers (default: false) # strong_ssl_ciphers: false strong_ssl_ciphers:true
更改Harbor管理员登录密码
1 2 3 4
# The initial password of Harbor admin # It only works in first time to install harbor # Remember Change the admin password from UI after launching Harbor. harbor_admin_password:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
启用缓存
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# Cache layer configurations # If this feature enabled, harbor will cache the resource # `project/project_metadata/repository/artifact/manifest` in the redis # which can especially help to improve the performance of high concurrent # manifest pulling. # NOTICE # If you are deploying Harbor in HA mode, make sure that all the harbor # instances have the same behaviour, all with caching enabled or disabled, # otherwise it can lead to potential data inconsistency. cache: # not enabled by default enabled:true # keep cache for one day by default expire_hours:24