# 若不需要进行变动,则修改hostname即可 # Configuration file of Harbor
# 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:x.x.x.x# 修改为自己搭建主机的ip即可
# harbor默认将图像和图表数据存储在本地上,storage_service配置其可以使用其他的存储后端存储,其中可以配置CA证书路径、filesystem等配置 # storage_service: # ca_bundle: # filesystem: # maxthreads: 100 # # set disable to true when you want to disable registry redirect # redirect: # disabled: false
# Clair镜像扫描配置,检查容器基础框架的安全性,其原理还未研究,之后补充。harbor默认检查时间间隔为12h,设置为0表示禁止扫描 clair: # The interval of clair updaters, the unit is hour, set to 0 to disable the updaters. updaters_interval:12
# jobservice是harbor的其中一个组件,主要负责镜像复制,具体原理后续补充 jobservice: # Maximum number of job workers in job service max_job_workers:10
notification: # Maximum retry count for webhook job webhook_job_max_retry:10 chart: # Change the value of absolute_url to enabled can enable absolute url in chart absolute_url:disabled # 日志配置,harbor默认使用rsyslog来收集日志 log: # 设置日志级别,options are debug, info, warning, error, fatal level:info # configs for logs in local storage local: # Log files are rotated log_rotate_count times before being removed. If count is 0, old versions are removed rather than rotated. rotate_count:50 # 日志大小,可使用k,M,G作为单位 rotate_size:200M # 日志存储路径 location:/var/log/harbor
# 启用该选项可将日志转发到rsyslog服务器 # external_endpoint: # # protocol used to transmit log to external endpoint, options is tcp or udp # protocol: tcp # # The host of external endpoint # host: localhost # # Port of external endpoint # port: 5140
# 代理配置 proxy: http_proxy: https_proxy: # no_proxy endpoints will appended to 127.0.0.1,localhost,.local,.internal,log,db,redis,nginx,core,portal,postgresql,jobservice,registry,registryctl,clair,chartmuseum,notary-server no_proxy: components: -core -jobservice -clair